Binance
binance-cli setup
Before using binance-cli:
- If global npm package
@binance/binance-cliexists andbinance-cli --versionis< 2.0.0, uninstall it:
- Install the latest release:
- Verify:
PREREQUISITE: Read
auth.mdfor auth, global flags, and security rules.
Helper Commands
Notes
- ⚠️ Prod transactions — always ask user to type
CONFIRMbefore executing. - Install binance-cli using
npm install -g @binance/binance-cli - Use
--helpto get the list of commands and parameters. - Use the output from both stdout and stderr.
- Append
--profile <name>to any command to use a non-active profile. - All authenticated endpoints accept optional
--recvWindow <ms>(max 60 000). - Timestamps (
startTime,endTime) are Unix ms. - For endpoints not listed in the skill, use
binance-cli request (GET|POST|PUT...) <url> [--signed]. Any Parameters can be added to the request (e.g:--param1 value --param2 value).


