Create a dedicated key
Make a new API key used only by the bot, so you can revoke it without affecting anything else. Label it with the bot’s name and the date.
Permissions
- Read: on.
- Spot trading: on.
- Futures or margin trading: only if your approved strategy trades them.
- Withdrawals: off.
- Internal and sub-account transfers: off.
Restrict by IP
Most exchanges let you lock a key to the IP address of your server. With that set, a leaked key cannot be used from anywhere else.
Store it safely
Keep the key in your server’s environment variables or a secret manager, never in the code, a chat or an email. RuleToBot builds read keys from the environment and never log them.
This guide explains software and testing. It is not investment advice.
