Skip to main content

Place order

Places a normal spot order (MARKET or LIMIT) on the given trading pair.

Headers​

NameTypeRequiredDescription
BROKER-IDStringNoOptional broker/partner identifier to tag orders placed through them

Request Body​

Limit

NameTypeRequiredDescription
orderTypeStringYesLIMIT
symbolStringYesTrading pair, e.g. BTC-USDT
orderSideStringYesBUY or SELL
orderPriceDoubleYesLimit price to trade at
orderSizeDoubleYesOrder quantity in base currency
timeInForceStringNoTime-in-force policy (GTC, IOC, FOK)
clOrderIdStringNoClient-supplied order identifier, echoed in the response (max 64 characters)
postOnlyBooleanNoIf true, reject the order if it would immediately match (post-only / maker-only)

Market

NameTypeRequiredDescription
orderTypeStringYesMARKET β€” LIMIT Β· MARKET Β· PEG Β· OCO Β· TWAP Β· CONDITIONAL Β· TRAILING
symbolStringYesTrading pair, e.g. BTC-USDT
orderSideStringYesBUY or SELL
clOrderIdStringNoClient-supplied order identifier, echoed in the response (max 64 characters)
quoteOrderSizeDoubleNoOrder amount in quote currency; only for BUY side
orderSizeDoubleNoOrder quantity in base currency; only for SELL side

Response Content​

NameTypeDescription
orderIdStringServer-assigned order identifier
clOrderIdStringEcho of the client-supplied order identifier if one was provided
statusIntegerNumeric status code reflecting the current state of the order (e.g. filled, cancelled, rejected)
marketStringTrading pair, e.g. BTC-USDT
typeIntegerNumeric code identifying the order type (e.g. LIMIT, MARKET, TWAP, PEG)
orderSideStringBUY or SELL
orderPriceDoubleOrder price
postOnlyBooleanWhether the order was submitted as post-only
timestampLongServer-side event timestamp in epoch milliseconds
orderDetailTypeStringDetailed order sub-type when applicable (e.g. TWAP for algo TWAP orders)
messageStringOptional diagnostic message; present only when one is returned (e.g. rejection reason)
userQuoteCurrencyStringQuote currency configured for the user
orderCurrencyString'quote' or 'base'; indicates whether the quote-size or base-size fields below are populated
originalOrderBaseSizeDoubleOriginal size in base currency; populated when orderCurrency is 'base'
originalOrderQuoteSizeDoubleOriginal size in quote currency; populated when orderCurrency is 'quote'
currentOrderBaseSizeDoubleCurrently active size in base currency; populated when orderCurrency is 'base'
currentOrderQuoteSizeDoubleCurrently active size in quote currency; populated when orderCurrency is 'quote'
remainingOrderBaseSizeDoubleRemaining unfilled size in base currency; populated when orderCurrency is 'base'
remainingOrderQuoteSizeDoubleRemaining unfilled size in quote currency; populated when orderCurrency is 'quote'
filledBaseSizeDoubleSize filled by the most recent match, in base currency
totalFilledBaseSizeDoubleCumulative filled size across all matches, in base currency
avgFilledPriceDoubleVolume-weighted average fill price
time_in_forceStringTime-in-force policy (GTC, IOC, FOK); null when not applicable to the order type
example
POSThttps://api.btse.com/spot/api/v4/trade/orders

Request (Limit)

{
"symbol": "BTC-USD",
"orderType": "LIMIT",
"orderSide": "BUY",
"orderSize": 0.00001,
"orderPrice": 61024.1
}

Request (Market)

{
"symbol": "BTC-USD",
"orderType": "MARKET",
"orderSide": "BUY",
"quoteOrderSize": 1.9
}

Response (Limit)

[
{
"orderId": "4eca2eb4-e6ad-4355-ae12-5ce757b105b3",
"clOrderId": "",
"status": 2,
"market": "BTC-USD",
"type": 76,
"orderSide": "BUY",
"orderPrice": 61024.1,
"postOnly": false,
"timestamp": 1784891308063,
"orderDetailType": null,
"message": null,
"userQuoteCurrency": "USD",
"orderCurrency": "base",
"originalOrderBaseSize": 0.00001,
"originalOrderQuoteSize": null,
"currentOrderBaseSize": 0.00001,
"currentOrderQuoteSize": null,
"remainingOrderBaseSize": 0.00001,
"remainingOrderQuoteSize": null,
"filledBaseSize": 0,
"totalFilledBaseSize": 0,
"avgFilledPrice": 0,
"time_in_force": "GTC"
}
]

Response (Market)

[
{
"orderId": "859af358-c6d2-49c3-a2cf-48ba5b74b968",
"clOrderId": "",
"status": 5,
"market": "BTC-USD",
"type": 77,
"orderSide": "BUY",
"orderPrice": 64235.9701,
"postOnly": false,
"timestamp": 1784891308215,
"orderDetailType": null,
"message": null,
"userQuoteCurrency": "USD",
"orderCurrency": "quote",
"originalOrderBaseSize": null,
"originalOrderQuoteSize": 1.9,
"currentOrderBaseSize": null,
"currentOrderQuoteSize": 1.9,
"remainingOrderBaseSize": null,
"remainingOrderQuoteSize": 0.61528059,
"filledBaseSize": 0.00002,
"totalFilledBaseSize": 0.00002,
"avgFilledPrice": 64235.9701,
"time_in_force": "GTC"
}
]