A bot needs to place orders; it never needs to move funds. That distinction is the whole security model.
Rules that matter #
- Never enable withdrawals. Rulemancer refuses such keys, and an exchange key without withdrawal permission cannot empty an account.
- Bind to an IP where the exchange allows it. A stolen key used elsewhere simply fails.
- One key per purpose. A separate key per platform makes revocation surgical.
- Rotate every few months. Create the new key, connect it, confirm a fill, then delete the old one.
If a key leaks #
- Revoke it at the exchange first — that is immediate.
- Cancel open orders it placed.
- Disconnect it in Rulemancer so the bot stops retrying.
- Check trade history for orders you did not write.
- Create a new restricted key and reconnect.
How keys are stored #
Keys are encrypted at rest with the platform’s application key and never displayed again after saving. They are not written to logs. For the longer version, read trade-only API keys.
Leave a Reply