Who holds the keys on a white-label crypto exchange?

A sales page that says "non-custodial" does not settle who holds the keys. It is more useful to ask three questions: who can sign an order, who can move funds out, and who receives the fee. This page answers them from the code for the Trading API's user-signed lane in BT365 Exchange-as-a-Service, and says where a venue's web app and BT365's own signing features work differently. It describes how the lane is built, not a venue that is running.
Who holds the keys on a white-label crypto exchange?
Three parties touch every order on a white-label venue:
- the user, who trades;
- the venue, the brand the user signed up with;
- the provider, whose software sits behind the brand.
On an onchain venue it depends on how the provider built the signing path. On the Trading API's user-signed lane in BT365 Exchange-as-a-Service, the trading account is the user's own Hyperliquid wallet, and on that lane there is no second wallet that BT365 creates and operates for the user. What each party holds on that lane:
| Party | Holds | Can do alone | Cannot do |
|---|---|---|---|
| The user | The account's wallet key | Sign orders, withdraw to their own address | Withdraw through this lane to any other address |
| The venue | An API key from BT365 | Ask for an order to be built for an account of its venue, read balances and positions | Place, cancel or change an order, or change margin, without a signature from the account or a trading key the account approved; withdraw without the account's own signature |
| BT365 | No key for the account | Build the payloads, check the signatures, relay them | Sign an order or a withdrawal |
A venue's web app is a different path. Its web terminal has no user-signed perps: it trades from an agent wallet, which is owner-scoped and platform-custodied. BT365 creates that wallet and operates the key on the user's behalf.
How does an order get signed on a white-label exchange?
In two steps, over the Trading API.
Prepare. The venue's server calls a prepare route: open, close, cancel, change a stop or a target, edit a limit order, add margin, withdraw. BT365 builds the action and returns the exact payload to sign, with an id for the bundle. The id works once and expires after 60 seconds.
Submit. The user's side signs each payload. The venue posts the signatures with the id. BT365 recovers the signer of every item and compares it with the signers that item accepts. If one signature is missing or comes from another wallet, the whole request is refused and nothing reaches Hyperliquid.
Which signer an item accepts depends on what it does:
| Action | Accepted signature |
|---|---|
| Orders, cancels, edits and margin changes | The account wallet, or a trading key the account approved |
| Approving a trading key, approving the venue's fee, withdrawing | The account wallet only |
The trading key is optional. An account can approve one during setup so that a session can place orders without a wallet prompt each time. It is held by the user's side, never by BT365, and it stops being accepted when its approval lapses or is replaced.
The API key authorises less than it seems to. A venue's operator key can address every account of its own venue and no other. Each action in the table above still needs both things at once: a key allowed to address the account, and signatures that recover to the account or, where the table allows it, to a trading key the account approved.
One order, step by step
A user on a venue opens a $10,000 long in ETH perpetual futures. The venue charges a 5 basis point fee, and a basis point is one hundredth of a percent.
- The venue's server calls prepare for an open order. BT365 returns the payload and an id that is good for 60 seconds.
- The user's trading key signs it.
- The venue submits the signature. BT365 recovers the signer, finds the approved trading key and relays the order.
- The order fills. On Hyperliquid the venue's own fee address receives a builder fee of 0.05% × $10,000 = $5.00.
- BT365 takes no part of that fee. It records the fill for the venue's monthly statement: $10,000 of volume, on which its own fee at the default 1.5 basis points is 0.015% × $10,000 = $1.50, invoiced later.
At no step did BT365 or the venue's API key sign the order.
Can the provider or the brand withdraw a user's funds?
Not on this lane, for two reasons that are both in the code.
A withdrawal is one of the actions that accept the account wallet only. A trading key approved for orders cannot sign it.
The destination is not an input. The request carries an amount; the server sets the destination to the account's own address and puts that address in the payload the user signs. So the only withdrawal this lane can produce is the user paying themselves.
There is also a structural check, and it is a narrow one. The lane's classes may not take a service that holds or derives a signing key as a direct dependency. A test reads the constructor parameters of the lane's five classes and the import lines of four of its files, and fails if a wallet service, a treasury service or a signing call appears among them. It does not follow the chain further: the lane's own service depends on BT365's agent service, and that service does hold the wallet service.
Which features mean the provider does hold a key?
Two kinds.
One is trading on a venue's web app. As said above, the web terminal does not use the user-signed lane: perps, prediction-market orders and Hyperliquid spot orders there sign from an agent wallet.
The other is any feature where software trades while the user is away, because it needs a key that is online. BT365 has built five features of that kind: agents, Autopilot, copy trading, server-side advanced orders and a server-signed swap on the Agent API. They are not the same on the web, the Android app and the iOS app, and they do not all sign from the same wallet. Agents, Autopilot and copy trading run on an agent wallet, which is owner-scoped and platform-custodied: BT365 operates the key on the user's behalf, and withdrawals exit to the owner address. Server-side advanced orders and the server-signed swap run on other wallets, and BT365 operates those keys too.
For a venue, all five are locked:
- none can be switched on unless a super-admin opens a separate lock on that venue;
- opening it is written to the audit log;
- an agent-wallet account can be assigned to a venue only while that lock is open, and the check is made when the account is created;
- closing the lock switches all five off again.
That lock does not cover perps on the web terminal. The account that path trades from is not assigned to a venue, and the routes it uses are not behind a venue's feature switches.
The older Trading API routes, where BT365 signs on a key holder's behalf, refuse every venue key outright. On the Trading API a venue key can read, as the table above shows. To change anything there it can reach only the prepare and submit lane.
The perps fee follows the same line. On the user-signed lane, under the default terms, the user's perps fee settles on-chain to the venue's own Hyperliquid fee address, BT365 takes no part of it, and BT365 is paid by invoice. A swap is different: by default the swap fee goes to BT365's fee address, not the venue's.
What does a user-signed design not protect against?
- It says who can sign, not who the signer is. The account's wallet is whatever the venue's system signs with. If a venue holds its users' keys itself, the account's key or a trading key, that custody is the venue's, and its users are trusting the venue.
- An embedded wallet depends on the login. A venue with its own login app identifies a user by the embedded wallets they hold in that app. Access to those wallets runs through that login app, which belongs to the venue. On such a venue BT365 does not accept an external wallet linked in that app as the user's identity.
- BT365 still sits in the path. It builds the payload the user signs. A withdrawal or an approval is a typed message that a wallet can show field by field. An order is signed as a hash of the order's bytes, so a wallet prompt shows a digest, not the order. The prepare response carries the exact action next to the payload and a line describing it, so a venue that wants to check can hash the action itself and compare.
- It does not make a trade safe. Removing the risk that a provider moves your funds leaves the risk of the position itself.
When should a venue not insist on this design? When its product is automation. A venue that wants agents or copy trading for its users needs the locked features, and with them it takes on a custodial product and what that means where it operates.
Related
- What is a white-label onchain exchange?
- How do Hyperliquid builder codes pay a front end?
- How do you authenticate a trading bot safely with API keys?
- How do onchain crypto options work, and who holds your money?
BT365 Exchange-as-a-Service starts with a partner call and a staging venue under your brand. See the tiers and fees.
BT365 is not available in every jurisdiction, and nothing on this page is investment advice. Trading perpetual futures and prediction markets carries risk of loss.