Spot Trade

All endpoints in this section require ALL THREE authentication headers

Query Order

get
/sapi/v1/order

Query an order by order ID Rate Limit: 20 times/2s

Query parameters
orderIdstringOptional

The order ID to query

newClientOrderIdstringOptional

Client Order Id, Unique order ID generated by users to mark their orders

Example: 1234567890
symbolstringRequired

Trading pair symbol (e.g. BTCUSDT)

Example: BTCUSDT
Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Responses
get
/sapi/v1/order
200

OK

New Order

post
/sapi/v1/order

Create a new order Rate Limit: 100 times/2s

Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Body
symbolstringRequired

Trading pair symbol (e.g. BTCUSDT)

Example: BTCUSDT
symbolNamestringOptional

Currency display name: Either symbol or symbolName must be provided

Example: BTC/USDT
volumenumberRequired

Order quantity

Example: 1
sidestring · enumRequired

Trade direction (BUY or SELL)

Example: BUYPossible values:
typestring · enumRequired

Order type (LIMIT, MARKET, etc.)

Example: LIMITPossible values:
pricenumberOptional

Order price (required for LIMIT orders)

Example: 20000.5
newClientOrderIdstringOptional

Custom client order ID

recvWindowintegerOptional

Maximum time in milliseconds the request is valid for

Example: 5000
Responses
post
/sapi/v1/order
200

OK

New Order Test

post
/sapi/v1/order/test

Test new order creation and signature/recvWindow length. Creates and validates a new order but does not send the order into the matching engine.

Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Body
symbolstringRequired

Trading pair symbol (e.g. BTCUSDT)

Example: BTCUSDT
symbolNamestringOptional

Currency display name: Either symbol or symbolName must be provided

Example: BTC/USDT
volumenumberRequired

Order quantity

Example: 1
sidestring · enumRequired

Trade direction (BUY or SELL)

Example: BUYPossible values:
typestring · enumRequired

Order type (LIMIT, MARKET, etc.)

Example: LIMITPossible values:
pricenumberOptional

Order price (required for LIMIT orders)

Example: 20000.5
newClientOrderIdstringOptional

Custom client order ID

recvWindowintegerOptional

Maximum time in milliseconds the request is valid for

Example: 5000
Responses
post
/sapi/v1/order/test
200

OK

Batch Orders

post
/sapi/v1/batchOrders

batch contains at most 10 orders

Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Body
symbolstringRequired

Symbol Name

Example: BTCUSDT
symbolNamestringOptional

Currency display name: Either symbol or symbolName must be provided

Example: BTC/USDT
Responses
post
/sapi/v1/batchOrders
200

OK

Cancel Order

post
/sapi/v1/cancel
Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Body
newClientOrderIdstringOptional

Client Order Id, Unique order ID generated by users to mark their orders

Example: 354444heihieddada
orderIdstringOptional

Order ID

symbolstringOptional

Symbol Name

Example: BTCUSDT
symbolNamestringOptional

Currency display name: Either symbol or symbolName must be provided

Example: BTC/USDT
Responses
post
/sapi/v1/cancel
200

OK

Batch Cancel Orders

post
/sapi/v1/batchCancel

Batch cancel contains at most 10 orders

Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Body
orderIdsstring[]Required

Order IDs to cancel

symbolstringRequired

Symbol Name

Example: BTCUSDT
symbolNamestringOptional

Currency display name: Either symbol or symbolName must be provided

Example: BTC/USDT
Responses
post
/sapi/v1/batchCancel
200

OK

Current Open Orders

get
/sapi/v1/openOrders

Retrieve all open orders for a specific symbol

Query parameters
symbolstringRequired

Trading pair symbol (e.g. BTCUSDT)

Example: BTCUSDT
limitinteger · min: 1 · max: 1000Optional

Maximum number of orders to return

Default: 100Example: 10
Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Responses
get
/sapi/v1/openOrders
200

OK

Query My Trades

get
/sapi/v1/myTrades

Retrieve all trades for the authenticated user for a specific symbol Rate Limit: 20 times/2s

Query parameters
symbolstringRequired

Symbol Name. E.g. BTCUSDT

Example: BTCUSDT
symbolNamestringOptional

Currency display name. Either symbol or symbolName must be provided. Example- BTC/USDT

Example: BTC/USDT
limitinteger · min: 1 · max: 1000Optional

Default 100; Max 1000

Default: 100Example: 50
fromIdstringOptional

Trade Id to fetch from

Example: 28457
Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Responses
get
/sapi/v1/myTrades
200

OK

Account Information

get
/sapi/v1/account

Get current account information including balances Rate Limit: 20 times/2s

Header parameters
X-CH-SIGNstringRequired

Signature generated using your API Secret

X-CH-TSstringRequired

Current timestamp in milliseconds

X-CH-APIKEYstringRequired

API Key from your GaiaEx account

Responses
get
/sapi/v1/account
200

OK

Last updated