Create Order
Creates an order, requires bearer token in authorization header.
This endpoint uses the signing format which does not require strict field ordering and addition of null fields in the request body. Quantities and prices does not require strict precision. E.g. for asset precision of 4 - 100, 100.0, 100.00, 100.000 and 100.0000 are all accepted.
Ratelimited: True. Higher tiers of rate limits available by providing the BX-RATELIMIT-TOKEN request header.
Request
- Base URLhttps://api.exchange.bullish.com/trading-api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
signature obtained using the signing format
timestamp is the number of milliseconds since EPOCH
nonce is a client side incremented unsigned 64 bit integer
string representation of a boolean value, enables out-of-order order requests to be processed
A numeric referrer id if applicable
Request body
Example request
{
"clientOrderId": "299834741023572480",
"symbol": "BTCUSDC",
"type": "LIMIT",
"side": "BUY",
"price": "1.00000000",
"stopPrice": "1.00000000",
"quantity": "1.00000000",
"timeInForce": "GTX",
"isMMP": true,
"tradingAccountId": "111000000000001"
}Response
Status OK. The create order command was successfully acknowledged. To check the current status of the order, query Get Order by ID using the orderId received in the response payload. Please consult the section How To Ensure The Order Of Create Order or Cancel Order Requests for more information.
Example response
{
"message": "Command acknowledged - CreateOrder",
"requestId": "633910976353665024",
"orderId": "633910775316480001",
"clientOrderId": "1234567"
}Changes
No recorded changes to this operation across all 1 revision of this API.