Skip to main content
POST
/
market-data
/
trading-pair
/
add
Add Trading Pair
curl --request POST \
  --url http://localhost:8000/market-data/trading-pair/add \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connector_name": "<string>",
  "trading_pair": "<string>",
  "account_name": "<string>",
  "timeout": 30
}
'
{
  "success": true,
  "connector_name": "<string>",
  "trading_pair": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request model for adding a trading pair to order book tracking

connector_name
string
required

Name of the connector (e.g., 'binance', 'binance_perpetual')

trading_pair
string
required

Trading pair to add (e.g., 'BTC-USDT')

account_name
string | null

Optional account name for trading connector preference

timeout
number
default:30

Timeout in seconds for order book initialization

Required range: 1 <= x <= 120

Response

Successful Response

Response model for trading pair management operations

success
boolean
required

Whether the operation succeeded

connector_name
string
required

Name of the connector

trading_pair
string
required

Trading pair that was added/removed

message
string
required

Status message