Are crypto trading bots safe? What API keys can do

A trading bot does not need custody of your funds, and you should not give it any. It needs permission to place and cancel orders on an account that stays yours. The difference is not a policy or a promise — it is a permission you set, and can revoke, without the bot's cooperation.

6 min read

On a centralised exchange: the API key

An exchange API key carries a set of permissions you choose when you create it. Reading and trading are separate from withdrawing. A bot needs the first two; it has no use for the third, and enabling it grants a capability nothing in a well-built bot will ever call.

DexMonk never requests withdrawal permission and has no code that would use it. What that means in practice: create the key with read and spot or futures trading, leave withdrawals off, and the worst a compromise can do is trade badly with money that never leaves your account.

The check that takes ten seconds

Open the key in your exchange account and look at its permissions. If withdrawals are enabled, you enabled them — no platform can turn that on for you. Turn it off. Revoking the key entirely stops every bot immediately and needs nobody's help but yours.

On a decentralised exchange: the agent wallet

A DEX has no API keys, so the equivalent is a signature. Your wallet signs one approval for a separate trading agent key, generated for the purpose, and that agent is what signs orders from then on.

The important part is what the approval contains. On AsterDex the agent is registered with withdrawal explicitly disabled in the payload you sign, and it carries its own expiry. The restriction is not a promise about behaviour — it is in the message your wallet signed, and the venue enforces it.

Your own private key is never transmitted and never held. Signing an approval is not the same as handing over a wallet, and the two are worth keeping firmly apart in your head.

What non-custodial does not protect you from

Market risk, entirely. Non-custodial means nobody can take your funds; it does not mean a strategy cannot lose them. A bot with trade-only permission can still place trades that go badly, and on futures a leveraged position can be liquidated. Those are the same risks you carry trading by hand.

It also does not protect you from your own configuration. A bot doing exactly what you told it to is the normal case, including when what you told it was a mistake. That is the argument for running on a testnet first, and for the first run of an untested rule being a dry run that records rather than orders.

Questions worth asking of any platform

Does it ask for withdrawal permission — and if it says it does not, does the key you created actually reflect that? Are the credentials encrypted at rest? Can you revoke access without contacting anyone? Is there a testnet mode that uses the same engine rather than a simulation of it?

A platform that cannot answer those plainly is telling you something. So is one that answers them in marketing language rather than in specifics.