Sign your traders in
Your traders sign in to your app, and your sign-in and its sessions are yours. Your backend calls trdrs with your Venue key carryingtrader:read or trader:trade, naming the trader in
x-trdrs-trader. Your keys stay on your server, and your traders’ browsers never hold one.
The trdrs trading platform’s own sign-in sessions take the trader’s trdrs session from trdrs’s own
origin, so your backend can’t call them:
Give each trader a wallet
A trader wallet is the trader’s own wallet, made on their device in your venue’s app on a wallet platform and owned by them alone. trdrs never signs for it: each money step is prepared by trdrs, signed by the trader’s wallet and checked by trdrs before it goes on. Hyperliquid is the provider a trader wallet trades today. You turn trader wallets on by saving your wallet platform login in the back office (Venue settings). Then a trader’s wallet goes through these steps, in this order, because Hyperliquid refuses every action of an account that never held money:- The trader signs in to your venue’s wallet app on their device, which makes the wallet.
- The wallet is registered, once trdrs has read that the trader alone controls it.
- The trader sends USDC to the wallet, and the wallet sends it on to Hyperliquid.
- The wallet approves a trading key, which trades and can never withdraw. The wallet connects as the trader’s Hyperliquid account, and trades like any connected account.
- Whenever the trader likes, the wallet signs a withdrawal, which trdrs checks and passes to Hyperliquid. No switch on the trader’s trading stops a withdrawal.
These routes take the trader’s trdrs session, so your own backend can’t call them with your Venue
key today. Your back office lists your traders’ wallets under Money.
Connect your traders’ accounts
A trader brings an account they already hold at a provider by signing in to it once, through Connect. Your backend runs Connect for the trader with your Venue key andx-trdrs-trader: it reads the tiles
your back office’s Settings > Connect gives them, and sends the trader’s login to that provider’s own
route, such as POST /api/providers/binance/connect with the trader’s API key.
Route your traders’ orders shows each call. trdrs keeps the login
in its vault, and you never build a provider’s sign-in.
An account your venue issues by your own id for the trader needs nothing connected: your backend reads
it and routes its orders with x-trdrs-trader, as
Route your traders’ orders shows.
Offer a Demo
A Demo is an account on the paper book, priced from live data, where a trader practises with nothing to connect. Your back office sets whether your traders can open one, and the balance it opens with, in Venue settings. The trdrs trading platform opens, resets and removes its signed-in trader’s Demos with these routes, which take the trader’s trdrs session, so your backend can’t call them:
A venue that switched Demos off for its traders gets
403 demo_off here. An account your venue issued
is reset only by you, never by its trader.
Take payout requests
A trader asks for a payout from one of their funded accounts. The payout is quoted by the account’s payout terms when it’s asked for, and its gross comes off the account’s balance at once, held while an owner approves it in the back office, which pays it, or rejects it, which gives the money back. Your own app asks for a payout on the trader’s behalf from your backend:
Required scope:
account:payout.
The trdrs trading platform takes its own signed-in trader’s payout requests with these routes, which
take the trader’s trdrs session, so your backend can’t call them:
What stays in the trdrs trading platform
The trdrs trading platform’s own features take a trdrs session, so your backend can’t call them: its sign-in, its AI, saved charts and layouts, alerts, the journal, scripts and backtests, bar replay, copy trading, its own subscriptions and trdrs Admin.Test it end to end
- In the sandbox, read
GET /api/connect/tilesfrom your backend for a test trader, and check it lists the tiles your Settings > Connect gives them. - Issue a test account on the paper book by your own id for a test trader, then read it from your
backend with
GET /api/account/listandx-trdrs-trader. - Issue a funded test account, then ask for a payout on it from your backend and approve it in the back office.
Next steps
Build a front end
Put your own chart, order ticket and account stream over the API.
Route your traders' orders
Read your traders’ accounts and route their orders from your backend with your Venue key.
Venue settings
Set trader wallets, Demos and payouts for your venue in the back office.