Installation
Quick Start
Why Use The CLI
- All command output is JSON, which makes it easy to pipe into
jqor parse in code. - The daemon keeps persistent connections to market data and trade WebSockets, so scripts do not need to manage subscriptions, authentication, or socket lifecycle directly.
- Market data commands work without credentials.
- Trading commands use the same API keys described in the API introduction.
Common Commands
Environments
The CLI supports both QFEX production and UAT environments:prod: Connects toqfex.comwith real funds.uat: Connects toqfex.iofor testing strategies and integrations without real funds.
qfex login or by editing ~/.config/qfex/config.yaml, then restarting the daemon.
Subaccounts
If your account has subaccounts,qfex login will prompt you to choose which account should be active by default. The selected value is stored in ~/.config/qfex/config.yaml as selected_subaccount.
Use these commands to inspect or change it later:
--from, --to, and --amount (in USD). You can set either --from or --to to "primary" to refer to your main account. The other account should be a UUID returned by qfex account subaccounts list.