Skip to main content

Exchange (CEX) API

Endpoints for centralized exchange integration.

Endpoints

Get Exchange List

Retrieve the list of supported centralized exchanges.

Response:

{
"exchanges": [
{
"name": "Binance",
"image": "https://...",
"logoUrl": "https://..."
},
]
}

Connect Exchange Account

Link a centralized exchange account using API keys.

Request Body:

{
"email": "user@example.com",
"exchangeKeys": {
"binance": {
"apiKey": "your-api-key",
"apiSecret": "your-api-secret"
}
}
}
caution

Only use API keys with read and spot trading permissions. Never provide withdrawal-enabled keys.


Get Exchange Transactions

Retrieve order history from connected exchanges.

Response Fields:

FieldTypeDescription
orderIdstringExchange order ID
symbolstringTrading pair (e.g., BTC/USDT)
pricenumberOrder execution price
amountnumberOrder quantity
typestringOrder type (MARKET, LIMIT)
sidestringBUY or SELL
timenumberTimestamp in milliseconds