Creating a key
API access needs a minimum deposit of 10 USDT on your account.- Sign in at magicmarkets.com.
- Go to Settings, then API.
- Click Add API Key and give it a name.
- Copy the value. It is shown once at creation.
Sending the key
- REST
- WebSocket
Send the key in the
X-Api-Key header on every request.What a key can do
A key can read balance, positions, orders and betslips; create betslips; place and close orders; and manage heartbeats.What a key cannot do
The public API has no endpoint to deposit, withdraw, change a withdrawal address, or create, list or revoke API keys. All of that happens on the website behind your sign-in and two-step verification. A key that leaks can trade your balance. It cannot take it out of your account. See Security for sign-in and two-step verification.Rate limits are per account
All of an account’s keys draw from one budget. A runaway script on one key throttles the others. See Errors and rate limits.Key hygiene
- Keep the key in an environment variable or a secret store. Never commit it, paste it into a chat, or put it in a screenshot.
- Use one key per program, so you can revoke one without stopping the rest.
- Revoke keys you no longer use.
- If a key leaks, revoke it on the website first, then check your open orders and positions.

