Skip to main content

Place Order

Place a new spot trading order with support for various order types including market and limit order.

HTTP Request

POST /api/v1/spot/trade/place-order

Request Parameters

ParameterTypeRequiredDescription
basestringYesBase currency (e.g., "BTC")
quotestringYesQuote currency (e.g., "USDT")
orderTypestringYesOrder type: "MARKET", "LIMIT"
tradeTypestringYesTrade type: "BUY" or "SELL"
amountstringYesOrder amount in base currency
pricestringNoOrder price (required when orderType is "LIMIT")

Request Example

curl -X POST "https://open-api.bydoxe.com/api/v1/spot/trade/place-order" \
-H "ACCESS-KEY: your-api-key" \
-H "ACCESS-SIGN: your-signature" \
-H "ACCESS-PASSPHRASE: your-passphrase" \
-H "ACCESS-TIMESTAMP: 1659076670000" \
-H "Content-Type: application/json" \
-d '{
"base": "BTC",
"quote": "USDT",
"orderType": "LIMIT",
"tradeType": "BUY",
"price": "90000.00",
"amount": "0.001"
}'

Response Parameters

ParameterTypeDescription
codestringResponse code
msgstringResponse message
requestTimenumberRequest timestamp in milliseconds
dataobjectOrder response data
> orderIdstringCreated order ID

Response Example

Success Response

{
"code": "00000",
"msg": "success",
"requestTime": 1732000000000,
"data": {
"orderId": "123456789"
}
}

Error Codes

CodeMessage
40001Parameter cannot be empty
40001Price is required for limit orders
40002Unauthorized
40010System maintenance
40034Currency pair does not exist
43008Market price not available
43008Insufficient balance
43024Order price error
43025Order quantity error
50000Fee configuration not found
50000System error