Trades

View and manage trades.

Endpoints

Method
Path
Description

GET

/v1/trades

List trades

GET

/v1/trades/:id

Get trade

GET

/v1/trades/analytics

Get trade analytics

POST

/v1/trades

Create trade

POST

/v1/trades/:id/cancel

Cancel trade


List Trades

GET /v1/trades

Query Parameters:

Parameter
Type
Description

strategy_id

string

Filter by strategy

exchange_account_id

string

Filter by exchange account

status

string

PENDING, FILLED, PARTIALLY_FILLED, CANCELLED, FAILED

side

string

BUY or SELL

limit

integer

Max results (default 50, max 100)

offset

integer

Pagination offset

curl "https://rest-api.tokenbot.com/v1/trades?status=FILLED&limit=10" \
  -H "X-API-Key: tb_live_your_key"

Get Trade


Get Trade Analytics

Returns aggregated trade performance metrics.


Create Trade

Request Body:


Cancel Trade

Last updated

Was this helpful?