Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer Authentication

Scopes

exchange:trade
api:write

Headers

X-BU-PROFILE-ID
string

User profile header

Example:

"BUS_YOK8tp5Zga01qOKEsqp07"

Body

application/json

One order. type, time_in_force and post_only are flat and independent rather than fused into a single union key, so the wire format stays readable and extensible; the server refuses an invalid combination by name with invalid_order_combination. A property this schema does not declare is refused with unknown-property rather than ignored.

market
string
required

A market's one canonical identifier: the base asset, a hyphen, the quote asset, all uppercase. USDT-NGN means USDT priced in NGN, so a buy acquires USDT and spends NGN. The same string is used in paths, query parameters, request bodies and stream subscriptions; there is no second spelling of a market anywhere on this surface.

Required string length: 5 - 21
Pattern: ^[A-Z0-9]{2,10}-[A-Z0-9]{2,10}$
Example:

"USDT-NGN"

side
enum<string>
required

The direction of an order or a fill, in terms of the market's base asset

Available options:
buy,
sell
Example:

"buy"

type
enum<string>
required

limit rests at a named price. market takes whatever the book offers, bounded by quote_quantity on a buy and by quantity on a sell.

Available options:
limit,
market
Example:

"limit"

quantity
string

The size in the base asset. Required for a limit order and for a market sell. Mutually exclusive with quote_quantity.

Maximum string length: 62
Pattern: ^-?[0-9]{1,30}(\.[0-9]{1,30})?$
Example:

"5000.00"

quote_quantity
string

The amount of the quote asset to spend, for a market buy that wants to size its spend rather than its acquisition. Mutually exclusive with quantity.

Maximum string length: 62
Pattern: ^-?[0-9]{1,30}(\.[0-9]{1,30})?$
Example:

"1000000.00"

price
string

The limit price, in the quote asset. Required for a limit order, and refused on a market order of either side, which takes what the book offers and carries no price bound. To bound the price, place a limit order with time_in_force ioc.

Maximum string length: 62
Pattern: ^-?[0-9]{1,30}(\.[0-9]{1,30})?$
Example:

"1371.50"

time_in_force
enum<string>

How long the order may live. Defaults to gtc for a limit order and ioc for a market one.

Available options:
gtc,
ioc,
fok
Example:

"gtc"

post_only
boolean

When true the order will not take liquidity. If it arrives to find a resting order it would have crossed, it is accepted and immediately cancelled with a cancel_reason of post_only_would_cross, so a maker can never pay a taker fee by accident. That is an outcome and not a refusal: the order existed, ran and closed, and it answers 201 with a cancelled order rather than an error. It is 201 and not 200 because an order WAS created; 200 on this operation means the other thing the response table lists, an identical replay of a client_order_id, which creates nothing. Defaults to false, and is not accepted on a market order.

Example:

true

client_order_id
string

The caller's own reference, unique among that caller's orders placed in the last 24 hours and among their live orders however old. Sending the same request twice under one id creates one order and answers 200 the second time, which is what makes a retry after a network timeout safe. Sending a different request under a held id is duplicate_client_order_id.

Maximum string length: 64
Example:

"mm-usdtngn-bid-0091"

stp_mode
enum<string>

Self-trade prevention. Defaults to cancel_taker.

Available options:
cancel_taker,
cancel_maker,
cancel_both,
decrement
Example:

"cancel_taker"

Response

An identical replay of a held client_order_id — placed within the last 24 hours, or still live. Nothing was created; this is the order as it stands now, including any status change since the first response.

General response Values

status
enum<string>
required
Available options:
success,
error
Example:

"success"

message
string
required
Example:

"message for success"

data
object
required

One of the caller's orders. Every field is always present and the ones that do not apply are null rather than absent, so a client's parser never has to branch on a missing key. The single exception is cancel_reason, which is absent on an order that was not cancelled, for the reason its own description gives.