Running a trading bot on a DEX, without custody
A bot can trade a decentralised exchange without you handing over a key or a coin. Your wallet approves a trading agent, the agent signs orders, and your funds stay where they are. The mechanics differ from a centralised venue in ways that matter for how you set a bot up.
What the agent can and cannot do
It can open, close and cancel positions. It cannot withdraw, because the approval it was registered under says so, and it expires on its own so a forgotten agent does not stay valid indefinitely.
A consequence worth knowing: because the permission is baked into the message you signed, it cannot be changed afterwards. An agent approved before a venue supported spot trading carries that limitation permanently, and the venue will refuse those orders no matter what the software would like. The fix is a new approval, not a setting.
Perpetuals, and what leverage actually does
Most DEX bot activity is on perpetual futures. A perpetual has no expiry and tracks spot through a funding rate paid between longs and shorts — a cost or a credit that accrues while a position is open, and one that a bot holding positions for days will feel.
Leverage multiplies both the position and the risk. A liquidation is not a bad outcome of a trade; it is the position being closed for you because the margin ran out. Any honest figure for a leveraged strategy has to include funding and the liquidation price, which is why they are shown on the launch screen rather than after.
A decentralised book is usually deeper on its headline pairs and much thinner elsewhere — and its spot book is often thinner than its perpetual one. A ladder sized for a deep market will move a thin one against itself. Check the pair, not the venue.
Practical differences from a centralised venue
Collateral is usually a single stablecoin rather than whatever you hold. Minimums are often lower — about 5 USDT an order on AsterDex against 10 on Binance. Bot concurrency limits tend to be higher, because the constraint is the shared request budget rather than an account tier.
And you need a wallet. An email-only account can trade a centralised venue immediately but cannot authorise a DEX agent, because there is no email-shaped substitute for a signature. Linking a wallet later is enough; it does not need to be the wallet you signed up with.