Skip to content

Reject partial integer option parsing#30

Open
samsamtrum wants to merge 1 commit into
unicity-sphere:mainfrom
samsamtrum:fix-trader-integer-option-parsing
Open

Reject partial integer option parsing#30
samsamtrum wants to merge 1 commit into
unicity-sphere:mainfrom
samsamtrum:fix-trader-integer-option-parsing

Conversation

@samsamtrum
Copy link
Copy Markdown

@samsamtrum samsamtrum commented May 30, 2026

Fixes integer option parsing for trader commands.

Number.parseInt(...) accepts partially numeric strings like 1abc or 10.5, so CLI flags such as --expiry-ms / --limit could silently use a truncated value. This changes those trader integer options to require a full positive integer string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant