API reference
Build with the Trade Wzrd API
Automate everything the dashboard does: accounts, copy rooms, automations, orders and analytics - over REST, WebSockets, SSE, signed outbound webhooks and MCP.
Base URL
https://api.tradewzrd.com
WebSocket
wss://terminal.tradewzrd.com/ws
Start here
- AuthenticationCreate a scoped key and send it with every request.
- REST conventionsEnvelopes, casing, pagination and the error codes you will actually see.
- WebSockets & SSEOne socket for snapshots, ticks, copy events and trade commands.
- Event webhooksSigned outbound webhooks when trades open, close or rooms change.
- MCP serverLet Claude or Cursor drive your account with 12 scoped tools.
API resources
Keys
Create and manage the keys your bots use. Key management is session-only - a key can never mint keys.
- POST Create a key /api/v1/keys Create an API key. The raw secret is returned once.
- GET List keys /api/v1/keys List your keys - prefixes only, never secrets.
- POST Rotate a key /api/v1/keys/{keyId}/rotate New secret under the same keyId. Open sockets are closed.
- DELETE Revoke a key /api/v1/keys/{keyId} Immediate 401 on the next request; sockets close 1008 KEY_REVOKED.
- GET Key usage /api/v1/keys/usage?days=30 Request and error counts per key over a window (1-90 days).
- POST Verify a key /api/v1/keys/self-test Inspect the calling key: scopes, entitlement, trading flag.
Accounts
Read your connected accounts and manage their lifecycle. Linking a broker is session-only in the app; everything after that works by key.
- GET List accounts /api/v1/accounts Every connected account with its last known snapshot.
- GET Get an account /api/v1/accounts/{account_id} One account, including balance fields.
- GET Account symbols /api/v1/accounts/{account_id}/symbols Tradable symbols with pip size and lot constraints.
- GET Account dependencies /api/v1/accounts/{account_id}/dependencies Copy rooms and automations linked to this account.
- PUT Update an account /api/v1/accounts/{account_id} Rename an account or rotate its credentials.
- DELETE Delete an account /api/v1/accounts/{account_id} Remove an account. Rooms depending on it are paused, not orphaned.
- POST Reconnect /api/v1/accounts/{account_id}/reconnect Request a reconnect to the broker.
- POST Disconnect /api/v1/accounts/{account_id}/disconnect Disconnect the account from its broker session.
- POST Sync symbols /api/v1/accounts/{account_id}/sync-symbols Refresh the symbol list from the broker.
- POST Close all positions /api/v1/accounts/{account_id}/close-all Flatten every open position on the account.
Trading
The same order tickets the terminal uses. Every order route requires an Idempotency-Key - one UUID per intended order, reused across retries.
- POST Place an order /api/v1/terminal/place-order Market or pending entry with optional SL/TP.
- POST Close a position /api/v1/terminal/close-position Full or partial close by ticket.
- POST Modify a position /api/v1/terminal/modify-position Move SL/TP, or set the trigger price of a pending order.
- POST Delete a pending order /api/v1/terminal/delete-pending-order Cancel a pending order by ticket.
- POST Close all (terminal) /api/v1/terminal/close-all The terminal route for flattening an account.
- POST Closed positions /api/v1/terminal/get-closed-positions Read the account closed-position list.
- GET Symbol parameters /api/v1/terminal/symbol-params Per-symbol trading parameters.
Copy rooms
Create and operate copy rooms - the sender, its receivers, and every copy event between them.
- GET List rooms /api/v1/rooms Rooms you own.
- GET Get a room /api/v1/rooms/{room_id} One room with its receivers.
- POST Create a room /api/v1/rooms New copy room with a sender account and defaults.
- PUT Update a room /api/v1/rooms/{room_id} Any subset of the create body, plus status.
- POST Pause a room /api/v1/rooms/{room_id}/pause Stop copying without deleting anything.
- DELETE Delete a room /api/v1/rooms/{room_id} Remove the room entirely.
- GET Room dashboard /api/v1/rooms/{room_id}/dashboard Analytics, receivers and recent events in one call.
- GET Historical trades /api/v1/rooms/{room_id}/historical_trades The room copy history, paginated.
- GET Copy events /api/v1/rooms/events Every copy event across your rooms, with per-receiver outcomes.
- POST Subscribe a receiver /api/v1/rooms/{room_id}/subscribe Attach one of your accounts to a room as a receiver.
- GET My subscriptions /api/v1/rooms/my/subscriptions Rooms you copy into, one row per receiver.
- GET Account health /api/v1/rooms/health/accounts Connection status for every account in your rooms.
Automations
The developer-facing name for the webhook primitive. The same handlers are mounted at /api/v1/webhooks - either path works.
- GET List automations /api/v1/automations Your automations with call counters.
- POST Create an automation /api/v1/automations New webhook with per-account routing.
- GET Execution logs /api/v1/automations/logs Every signal received, parsed or rejected.
- POST Dry-run a signal /api/v1/automations/{id}/test Parse and route a signal without executing anything.
- POST Fire a webhook /api/webhooks/{url_slug} The firing URL - no API key, the slug is the credential.
- DELETE Delete an automation /api/v1/automations/{id} Remove the automation and its firing URL.
Trades & analytics
The ledger and the math on top of it. Realtime is a hint - these routes are the source of truth.
- GET List trades /api/v1/trades Trade documents with filters and pagination.
- GET Portfolio /api/v1/analytics/portfolio Per-account balance, equity and equity curve.
- GET Trade analytics /api/v1/analytics/trades Win rate, profit factor, expectancy and friends.
- GET Performance /api/v1/analytics/performance Net profit, drawdown, Sharpe, recovery factor.
- GET Daily history /api/v1/analytics/history Per-day profit, trades and win rate.
- POST Refresh analytics /api/v1/analytics/refresh/{account_id} Recompute from the broker. Slower than cached.
Events
Subscribe your own endpoints and receive signed webhooks when things happen. Creating subscriptions is session-only; receiving is your code.
- GET List subscriptions /api/v1/events/subscriptions Your outbound webhook subscriptions and their health.
- POST Create a subscription /api/v1/events/subscriptions Register a URL. The signing secret is shown once.
- DELETE Delete a subscription /api/v1/events/subscriptions/{id} Stop deliveries to a URL.
Plan access
API access and MCP are included on Scale and Unlimited. Scale: 3 keys, 120 requests/minute, 3 sockets. Unlimited: 10 keys, 600 requests/minute, 10 sockets. Trading over the API is available on both. Entitlements resolve from your plan on every request (as of December 2026).







