Prerequisites
- A WhiteBIT account with an API key for authenticated commands — see Authentication
market, mining-pool) require no account or API key.
Install the CLI
Packaged releases (npm, Homebrew, and pre-compiled binaries) are coming soon. The source code is available at github.com/whitebit-exchange/whitebit-cli.
Quick start
Authentication
Credentials are resolved in priority order (highest first):Config file
Create~/.whitebit/config.toml with one or more named profiles:
--profile:
Commands
Examples
Market data
Account and balance
Spot trading
JSON output and scripting
Shell completion
- Bash
- Zsh
- Fish
~/.bashrc.Global options
Exit codes
Security best practices
- Never commit credentials to version control.
- Use environment variables for CI/CD pipelines.
- Set restrictive file permissions:
chmod 600 ~/.whitebit/config.toml. - Use API key restrictions in the WhiteBIT dashboard — IP whitelist and read-only scope when appropriate.
- Avoid
--api-keyand--api-secretflags in production scripts — values are visible in the process list.
What’s next
- MCP server — Use natural language to trade and query data via an AI client
- AI tools FAQ — Common questions about the CLI, API keys, and automation
- AI tools overview — All WhiteBIT AI tools in one place
- Authentication — How to generate and manage WhiteBIT API keys
- API Reference Overview — Full REST API endpoint listing