Millionero API Documentation
v4REST and WebSocket APIs for spot and perpetual trading, wallets and copy trading on Millionero.
Base URLs
| Service | URL |
|---|---|
| REST API | https://coreapi.millionero.com |
| Chart data | https://streamingapi.millionero.com |
| Public WebSocket | wss://streamingapi.millionero.com/ws |
| Private WebSocket | wss://streamingapi.millionero.com/ws/private |
Where to start
Quick start
Create a key and send your first public and signed requests.
General information
Response format, numbers, timestamps, pagination, rate limits and safe retries.
Authentication
Sign requests with an Ed25519 key, with a worked example to test your code.
Spot trading
Place and cancel spot orders and read order and trade history.
Perpetual trading
Leveraged orders, positions, margin, take profit and stop loss.
Wallet and withdrawals
Balances, transfers, deposit networks and withdrawals.
WebSocket
Live tickers, order book, trades and candles.
Definitions
Every allowed value for sides, order types, statuses and modes.
Error codes
Every error code, what it means and what to do.
Security
- Keep private keys on your server and register only the public key.
- Grant only the scopes you need and restrict each key to your IP addresses.
- Always use HTTPS.
Before you trade
- Amounts and prices are decimal strings, never numbers.
- HTTP 202 means queued, not done. Check the result before retrying.
- Send an Idempotency-Key so a retry cannot place an order twice.