TermlessDocs

Reference

API reference

Every route, grouped the way you use them. Each one with its parameters, every field of the request and response, every error, and copy-ready calls in curl, Python and JavaScript.

All routes#

MethodPathScopeWhat
GET/api/v1/accountsreadList accounts
POST/api/v1/accountsadminAdd an account
GET/api/v1/accounts/{id}readGet an account
PATCH/api/v1/accounts/{id}adminUpdate an account
DELETE/api/v1/accounts/{id}adminRemove an account
GET/api/v1/accounts/{id}/summaryreadGet balance and margin
GET/api/v1/overviewreadGet every account's summary
GET/api/v1/accounts/{id}/readyreadCheck the account is ready
GET/api/v1/accounts/{id}/statsreadGet account statistics
GET/api/v1/accounts/{id}/symbolsreadSearch symbols
GET/api/v1/accounts/{id}/symbols/{symbol}readGet a symbol's spec
GET/api/v1/accounts/{id}/specsreadGet many symbol specs
GET/api/v1/accounts/{id}/quotesreadGet quotes
DELETE/api/v1/accounts/{id}/quotesreadLet quotes go
GET/api/v1/accounts/{id}/candlesreadGet candles
POST/api/v1/accounts/{id}/candles/batchreadGet candles for many ranges
GET/api/v1/accounts/{id}/bookreadGet an order book
DELETE/api/v1/accounts/{id}/bookreadRelease an order book
GET/api/v1/accounts/{id}/ticksreadGet recent ticks
GET/api/v1/accounts/{id}/streamreadStream prices and events (SSE)
GET/api/v1/accounts/{id}/wsreadStream prices and events (WebSocket)
GET/api/v1/accounts/{id}/tradesreadRead trade events since an id
GET/api/v1/accounts/{id}/positionsreadList open positions
GET/api/v1/accounts/{id}/ordersreadList pending orders
POST/api/v1/accounts/{id}/orderstradePlace an order
GET/api/v1/accounts/{id}/orders/historyreadList past orders
GET/api/v1/accounts/{id}/orders/{ticket}readGet one pending order
PATCH/api/v1/accounts/{id}/orders/{ticket}tradeModify a pending order
DELETE/api/v1/accounts/{id}/orders/{ticket}tradeCancel a pending order
GET/api/v1/accounts/{id}/positions/{ticket}readGet one open position
PATCH/api/v1/accounts/{id}/positions/{ticket}tradeSet SL and TP
DELETE/api/v1/accounts/{id}/positions/{ticket}tradeClose a position
GET/api/v1/accounts/{id}/dealsreadList deals
GET/api/v1/accounts/{id}/calcreadWork out margin and profit
POST/api/v1/accounts/{id}/order_checkreadCheck an order without sending it
POST/api/v1/accounts/{id}/order_sendtradeSend a raw MetaTrader request
GET/api/v1/auditadminRead the audit trail
GET/api/v1/accounts/{id}/eventsreadGet connection history
GET/api/v1/accounts/{id}/equityreadGet the equity curve
GET/api/v1/keys/{id}/trafficadminSee a key's traffic
GET/api/v1/connectionsadminSee who is connected
GET/api/v1/keysadminList keys
POST/api/v1/keysadminCreate a key
PATCH/api/v1/keys/{id}adminEdit a key
DELETE/api/v1/keys/{id}adminRevoke a key
GET/api/v1/healthNo key neededCheck health
GET/api/v1/setupNo key neededCheck whether setup is needed
POST/api/v1/setupNo key neededFinish first-run setup
POST/api/v1/sessionNo key neededSign in to the dashboard
DELETE/api/v1/sessionNo key neededSign out
GET/api/v1/meAny keyWho am I
PUT/api/v1/admin/passwordadmin · cookie onlyChange the admin password
GET/api/v1/statusreadGet the status report
GET/api/v1/metricsreadGet Prometheus metrics
GET/api/v1/serversadminSearch broker servers
POST/api/v1/servers/checkadminCheck an address
POST/api/v1/servers/{server}/trustadminPin a certificate key
DELETE/api/v1/servers/{server}/trustadminRemove a pinned key
GET/api/v1/diagnosticsadminGet diagnostics
GET/api/v1/diagnostics/undecodedadminList undecoded frames
GET/api/v1/diagnostics/doctoradminRun the doctor
GET/api/v1/diagnostics/crashes/{name}adminGet a crash report
GET/api/v1/diagnostics/logsadminGet the log

Objects#

Every JSON shape, field by field, is on the Objects page. The same shapes as JSON Schema are in /api/openapi.json (OpenAPI 3.1).