For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trading API Service

Trading API service: health, fee tiers, and exchange market data.

Health & System Endpoints

GET /health

Check if the trading API service is running and healthy.

Authentication: Not required

Response:

{
  "status": "UP"
}

Status Codes:

  • 200 - Service is healthy

  • 500 - Service is unhealthy

Market Data

Exchange information (markets, precisions, fees) is available per product at GET /spot/exchangeInfo and GET /perpetual/exchangeInfo.

GET /orderbook

Retrieve order book data for a specific trading symbol.

Authentication: Not required

Query Parameters:

Parameter
Type
Required
Options
Description

symbol

string

Yes

Trading symbol to get order book for

Request:

Response:

Response Fields:

Field
Type
Description

bids

array

Array of bid levels, each containing [price, amount]

asks

array

Array of ask levels, each containing [price, amount]

Status Codes:

  • 200 - Order book retrieved successfully

  • 400 - Missing symbol parameter

  • 404 - Symbol not found

  • 500 - Internal server error

GET /klines

Retrieve OHLC/candlestick data for a specific trading symbol. Compatible with Binance API format.

Authentication: Not required

Query Parameters:

Parameter
Type
Required
Options
Description

symbol

string

Yes

Trading symbol to get klines for

interval

string

No

1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M

Kline interval

startTime

integer

No

Start time in milliseconds since Unix epoch

endTime

integer

No

End time in milliseconds since Unix epoch

limit

integer

No

default 500, max 1000

Number of klines to return

timeZone

string

No

Timezone offset (e.g., "UTC", "+08:00")

Request:

Response:

Response Format (each kline array contains):

  • [0]: Open time (milliseconds)

  • [1]: Open price

  • [2]: High price

  • [3]: Low price

  • [4]: Close price

  • [5]: Volume

  • [6]: Number of trades

Status Codes:

  • 200 - Klines retrieved successfully

  • 400 - Invalid parameters or missing symbol

  • 404 - Symbol not found

  • 500 - Internal server error

GET /ticker/24hr

Retrieve 24-hour ticker statistics for a specific trading symbol.

Authentication: Not required

Query Parameters:

Parameter
Type
Required
Options
Description

symbol

string

Yes

Trading symbol to get ticker for

Request:

Response:

Response Fields:

Field
Type
Description

marketId

string

Market identifier (e.g., BTCUSD)

time

integer

Timestamp of the data in Unix milliseconds

min

decimal string

Lowest price in the period

max

decimal string

Highest price in the period

first

decimal string

First price in the period (open price)

last

decimal string

Last trade price

volume

decimal string

Total traded volume in the base currency

quoteVolume

decimal string

Total traded volume in the quote currency

vwap

decimal string

Volume-weighted average price

priceChange

string

Price change percentage over the period

Status Codes:

  • 200 - Ticker retrieved successfully

  • 400 - Missing symbol parameter

  • 404 - Symbol not found

  • 500 - Internal server error

Fees

GET /account/fee-schedule

Retrieve the public fee tier schedule (maker/taker rates per tier, in basis points, and the volume thresholds that qualify for each tier).

Authentication: Not required

Response:

Response Fields (array of tiers):

Field
Type
Description

tier

integer

Tier number (0 is the base tier)

spot_maker_bps

decimal string

Spot maker fee, in basis points

spot_taker_bps

decimal string

Spot taker fee, in basis points

perp_maker_bps

decimal string

Perpetuals maker fee, in basis points

perp_taker_bps

decimal string

Perpetuals taker fee, in basis points

spot_volume_usd_min

decimal string

Minimum 30-day spot volume (USD) to qualify for this tier

perp_volume_usd_min

decimal string

Minimum 30-day perpetuals volume (USD) to qualify for this tier

yellow_min

decimal string

Minimum $YELLOW balance to qualify for this tier

Status Codes:

  • 200 - Fee schedule retrieved successfully

  • 502 - Fee service error

  • 503 - Fee service temporarily unavailable

GET /account/fee-tier

Retrieve the authenticated user's current fee tier and the rates that apply to them.

Authentication: Required (read:spot or read:futures scope)

Response:

Response Fields:

Field
Type
Description

fee_tier

integer

The user's current tier number

qualifying_track

string

How the tier was reached (e.g. volume or yellow)

fee_tier_version

integer

Version of the fee schedule used for evaluation

evaluated_at

string

When the tier was last evaluated (RFC3339)

spot_maker_bps

decimal string

Effective spot maker fee, in basis points

spot_taker_bps

decimal string

Effective spot taker fee, in basis points

perp_maker_bps

decimal string

Effective perpetuals maker fee, in basis points

perp_taker_bps

decimal string

Effective perpetuals taker fee, in basis points

spot_30d_usd

decimal string

Trailing 30-day spot volume (USD)

perp_30d_usd

decimal string

Trailing 30-day perpetuals volume (USD)

yellow_balance

decimal string

The user's $YELLOW balance used for tier evaluation

Status Codes:

  • 200 - Fee tier retrieved successfully

  • 401 - Authentication failed

  • 403 - API key does not have the required scope

  • 404 - No fee tier found for the user

  • 503 - Fee service temporarily unavailable

Last updated

Was this helpful?