Skip to main content
POST
Sandbox Create buy or sell order

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
walletId
string
required

The ID of the wallet or sub-wallet associated with the order.

Example:

"wallet-12345"

symbol
string
required

The trading pair symbol (e.g., BTCUSDT).

Refer to the Get Trading pairs endpoint for the list of pair symbol.

Example:

"BTCUSDT"

orderType
enum<string>
required

The type of order (market or limit).

Available options:
market,
limit
Example:

"limit"

side
enum<string>
required

The side of the order (buy or sell).

Available options:
buy,
sell
Example:

"buy"

quantity
string
required

The amount of the order.

For limit and market-sell orders, it represents the number of base coins. For market-buy orders, it represents the number of quote coins.

Example:

"0.1"

clientTxId
string

A unique client-generated trade ID for the order.

Example:

"txn-67890"

price
string

The price per unit of the amount for a limit order (required for limit orders).

Example:

50000

requestWindow
string

Time window in unix milliseconds within which the request is valid (e.g., 5000 = 5 seconds).

Example:

"5000"

Response

success
boolean
required
Example:

true

data
object
required