For a crypto trading bot built with a Chinese team, the permission model is the single most important security decision after the code itself: it defines what the key can touch, what it cannot touch, and from where it may be used. The default answer from many vendors is a key with full account privileges that lives on a server the buyer does not inspect; the safe answer trades convenience for a narrow scope in which the bot can place, amend, and cancel orders but cannot move funds out, and in which usage is bound to the buyer’s own infrastructure where the venue supports it. This article sets out the permission layers exchanges expose, compares the models side by side, and isolates the two specifications that decide which model fits the engagement. Automated crypto trading may be restricted or prohibited in some jurisdictions; buyers should take local legal advice before deployment. The material below is technical information, not investment advice, and contains no return projection or profit guarantee of any kind.
The permission layers an exchange key exposes
Venue API keys are usually built from independent toggles rather than one all-or-nothing switch. Read permission exposes account balances, order history, and fills; trade permission allows placing, amending, and cancelling orders; withdrawal permission allows transferring assets to external addresses; transfer permission may cover moving funds between spot, futures, and sub-accounts. Some venues also expose toggles for margin transfer, for sub-account management, and for listening to private WebSocket streams. A bot that only orders on the book needs read and trade on its own account; everything else sits outside the required scope. Api key permissions should be reviewed against that minimal requirement rather than against whatever the vendor found convenient to enable during integration testing.
Within trade permission, vendors sometimes request finer toggles: spot trading, futures trading, margin trading, and futures order placement on settled positions. Each additional toggle widens the surface a faulty or compromised bot can reach, and derivatives toggles introduce liquidation and funding exposure that spot access does not carry. A buyer integrating a bot that only quotes spot pairs should not see futures toggles enabled on the production key; if they appear, they are either leftover from testing or an unstated design assumption, and both deserve a written explanation before the bot runs live.
Model comparison on the scope a bot actually needs
| Permission model | What the bot can do | What it cannot do | Suitable when |
|---|---|---|---|
| Read and trade only, withdrawal disabled | Query balances and history; place, amend, cancel orders on allowed venues | Move assets to external addresses; transfer between wallets outside configured paths | Default model for most automated trading deployments |
| Trade plus internal sub-account transfer | Trade and allocate funds between parent and sub-accounts the buyer controls | Withdraw externally; act on unrelated accounts | Multi-venue routing where the bot rebalances within the buyer’s own account structure |
| Full account key, withdrawal enabled | Trade, transfer, and withdraw to any address the key holder chooses | Nothing outside the venue’s own controls | Not recommended for a bot; reserved for manual account operations by the buyer |
| Per-venue sub-account keys, one per bot | Act within one sub-account’s balance and scope | Touch the parent account or other sub-accounts | Several independent strategies or vendors sharing one registered venue account |
The first row is the baseline most buyers should demand. The second row applies only where the strategy genuinely moves funds between the buyer’s own wallets, and even then the transfer route should be enumerated in configuration rather than left open. The third row is what most legacy integrations actually ship with, because enabling withdrawal during testing is faster than configuring a narrow key, and the scope is often never revisited before production. The fourth row is the cleanest isolation model for buyers who run more than one bot or vendor, because revoking one key removes one strategy’s access without touching the rest.
The two specifications that decide the model
The first deciding spec is the withdrawal boundary. The contract between buyer and vendor should state explicitly that the bot key carries no withdrawal permission, that withdrawal permission will not be added during operations, and that any manual withdrawal will be initiated by the buyer through the venue’s own interface, not through the bot. This boundary is what keeps a compromised or misbehaving bot from moving assets to an external address; without it, every other control is secondary. Vendors sometimes object that their dashboard needs withdrawal visibility to display balances, but balance display only needs read permission, and the objection usually indicates the dashboard was built around a full-access key. The custody reasoning behind this boundary, including why keys should never hold withdrawal rights, is developed in custody rules for China-built crypto bots.
The second deciding spec is the geo restriction and network binding the venue accepts. Many venues allow an API key to be bound to one or more IP addresses, so a leaked secret cannot be replayed from another network. Buyers should check whether the target venue supports IP binding, whether the bot’s outgoing address is stable, and whether the vendor’s own testing servers are excluded from production scope. Where the venue offers country or region-level restrictions in addition to IP binding, the buyer should match that list to the jurisdictions the bot is expected to operate from, and to the jurisdictions where trading itself is permitted. A geographic restriction configured on the vendor’s demo account should not be carried over to the production key without review; venue rules change, and the buyer’s own compliance position may differ from the vendor’s.
How Chinese teams typically configure the key, and what to verify
Practices vary across the Chinese developer market, but a common pattern starts from a full-access key created for integration testing, stored in a configuration file on the vendor’s server, and only partially narrowed before handover. Buyers should verify the final scope on the venue’s own key-management page rather than accepting the vendor’s screenshot: check each toggle individually, confirm withdrawal is off, and confirm the key’s creation date and last-used address. A key that was created weeks before the pilot and shows trading activity from an unknown IP suggests testing happened on shared infrastructure, which is a control problem even if the final strategy is sound.
Storage deserves the same inspection. The secret should be held in an environment variable, a secrets manager, or an encrypted configuration, not committed in a repository file, pasted into chat history, or duplicated across multiple server images. When the bot runs in the buyer’s own cloud account, the secrets can live under the buyer’s IAM policy and the vendor receives operator access that can be revoked; when it runs on the vendor’s account, the buyer is trusting the vendor’s hosting security as well as its code. Secrets should also be scoped to a single environment: the staging key, the production key, and any third-party test key should never be the same value, and a key used in a public demo should be treated as exposed and revoked after the demo ends. The audit questions behind server access and secret storage are organized in security audit of a China-built trading bot, which pairs with the permission review here.
Sub-accounts and multi-venue routing
Once a bot routes orders across several venues, the permission model should expand per venue rather than as one shared key. Each venue should have its own key, its own scope, and its own revocation path, so that one venue’s outage or one key’s compromise does not cascade into the others. Sub-accounts give the same isolation inside a single venue: one sub-account per strategy or vendor, with the parent account retained by the buyer and used only for funding and manual control. Routing logic that moves funds between sub-accounts should log each transfer, its source, its destination, and its reason, and should reconcile against the venue’s internal transfer records on every reconnect.
Buyers should also consider how permission review repeats over time. Scope that looks right at launch can drift: a vendor adds a toggle during a feature change, a new integration introduces a second venue with its own key, and a rotated key is copied with broader scope than the original. A quarterly check against the venue’s key list, confirming each key’s scope, binding, and last use, is a cheap control that catches drift before an incident. The diligence sequence that surrounds these checks, including vendor references and capped first exposure, is outlined in due diligence before talking to a Chinese team.
What the handover record should contain
At handover, the buyer should hold a written record of every key in use: venue, sub-account, scope toggles enabled, IP or geographic binding, creation date, and the person responsible for rotation. The record should match what the venue’s console shows, and any mismatch should be resolved before the production limit is raised. Rotation itself should be tested once during the engagement: create a replacement key with the same narrow scope, deploy it, confirm the bot trades against it, then revoke the old one. If rotation cannot be practiced in staging, the buyer will discover the operational details only after a real compromise. Where local law restricts crypto activity or certain derivatives, the permission review sits inside that legal boundary rather than replacing it; this article describes technical setup only, not a recommendation to trade, and no outcome of any kind is promised.
Leave a Reply