Home / Blog / Non-custodial automation
Pillar guideNon-Custodial Automated Trading on DEXs: a 3Commas-Style Bot for DeFi
For years, traders on centralized exchanges have used bots like 3Commas to run their strategy 24/7. The catch on a DEX is different: there's no exchange holding your coins. So how do you automate trading without handing custody to anyone? This is exactly the problem OX-ENGINE is built to solve.
What "automated trading" actually means
Automated trading is simply letting software execute your plan for you. You define the rules — entries, exits, position size, risk per trade — and a bot watches the market and acts the moment your conditions are met. No emotions, no missed candles at 3 a.m., no fat-finger mistakes.
This is what tools like 3Commas, Cryptohopper or Pionex made popular on centralized exchanges (CEX). OX-ENGINE brings that same idea to decentralized exchanges (DEX) — with one crucial upgrade: you never give up custody of your funds.
The custody problem (CEX bots vs DEX bots)
On a centralized exchange, your coins sit in the exchange's wallet. A CEX bot connects with an exchange API key. Even when that key is "trade-only", your assets still live with a third party — the exchange itself. Not your keys, not your coins.
On a DEX, there is no middleman holding your balance. Your funds stay in your wallet or your on-chain account. That's strictly safer for custody — but it raises a question: if no exchange holds an API for you, how can a bot trade on your behalf? The answer is a trade-only delegated key.
You delegate a key that is allowed to place trades only. It can open and close positions or swap tokens — but it is cryptographically incapable of withdrawing or transferring your funds out. Withdrawals stay reserved to you, the fund owner.
How a non-custodial DEX bot works
The exact mechanism depends on the DEX, but the pattern is always the same:
- You keep your main walletYour funds and your withdrawal rights never leave your control. The bot is never your custodian.
- You authorize a trade-only keyA separate signer/agent wallet (or a scoped on-chain permission) is approved to trade your account — and explicitly not to withdraw.
- The bot signs trades, nothing elseWhen your strategy triggers, the bot uses that key to sign an order. It cannot move funds to any external address.
- You revoke anytimeBecause the permission lives on-chain (or in the DEX's account system), you can revoke it whenever you want, instantly.
The result: the worst case if anything ever went wrong is bounded by trading risk on your own account. Nobody — not even us — can pull your money out.
OX-ENGINE vs a CEX bot like 3Commas
| CEX bot (e.g. 3Commas) | OX-ENGINE (DEX) | |
|---|---|---|
| Where funds live | On the exchange | In your own wallet / account |
| Custody | Custodial (exchange holds assets) | Non-custodial (you hold assets) |
| Connection | Exchange API key | Trade-only signer / agent wallet |
| Withdrawals | Exchange-controlled | Owner-only — bot can't withdraw |
| Counterparty risk | Exchange solvency & freezes | Smart-contract / on-chain only |
| What the bot does | Automates your strategy | Automates your strategy |
Notice the last row: the job is identical. OX-ENGINE is purely an automation utility — a way to run your strategy. The difference is everything around the execution: on a DEX, you stay self-custodial.
The security model: what the bot can and can't do
Withdrawal rights are the line we never cross. The fund owner — you — is the only party who can move money off the account. We also apply least-privilege defaults: the bot is granted the narrowest permission set that still lets it trade, and nothing more.
Non-custodial removes custody risk, not market risk. A bot still trades real money on volatile markets. That's why OX-ENGINE ships with stop-loss protection, auto break-even and backtesting — to manage risk, never to promise profit. This is not financial advice.
Which DEXs OX-ENGINE supports
We're rolling this out one venue at a time, starting with the one that fits the model best:
- Aster DEX — live today. Perpetual futures with a trade-only signer wallet (no-withdraw permission). Read the full guide →
- Hyperliquid — planned. Its API/agent-wallet model is a natural fit for non-custodial automation. Read the feasibility study →
- PancakeSwap — planned. Automation on an AMM/perp DEX using a scoped allowance model. Read the feasibility study →
More than execution: the tools around it
Automating an entry is the easy part. Surviving the market is the hard part. OX-ENGINE is built as a toolkit, so the bot also gives you:
- Money management — fixed or percentage position sizing, leverage control.
- Protective stops — stop-loss pre-placed on the exchange, multi-step break-even, liquidation protection.
- Backtesting — replay your signals and risk rules on history before risking a cent.
- Macro context — trend, Fear & Greed and an economic calendar, all in one view.
FAQ
Is a non-custodial trading bot safe?
For custody, yes — it trades with a key that can't withdraw, so your funds never leave your control. The remaining risk is ordinary market risk from trading.
How is OX-ENGINE different from 3Commas?
3Commas automates trading on centralized exchanges via exchange API keys. OX-ENGINE does the same for DEXs with trade-only signer/agent wallets, so you keep self-custody.
Can the bot withdraw my money?
No. The bot has trade-only permissions. Only the fund owner can withdraw, and that requires your own master wallet.
Automate your strategy — keep your keys
Start on Aster DEX today, or join the channel to follow Hyperliquid & PancakeSwap.