Skip to main content
POST
Place Order
Submits an order. Base URL: https://api.dexbuilder.com Authentication: Use a Broker API Key and sign this request with Timestamp and SIGN. Pass a wallet address that belongs to your Broker in X-User-Wallet-Address. Calculate the signature using the external Broker path. See Broker API Key and signing and Access on behalf of a user.

Request

The request body contains only the public token, side, price/size or total cost, order type/mode, and optional client order and expiry fields shown in the OpenAPI definition. The OpenAPI panel below is the source of truth for required parameters, types, enum values, and request-body fields. Timestamps are Unix timestamps unless the field description states otherwise.

Response

Returns an acceptance object containing the order identifier and processing status. Query the order or subscribe to the private order channel for subsequent state changes. A successful response uses HTTP 200. Invalid parameters or request bodies return HTTP 400. Private endpoints can return HTTP 401 when authentication fails, and temporary upstream failures can return HTTP 503. The error response contains a machine-readable label and message. For order, position, claim, transfer, and account operations, treat the response as the current server result and query the resource again when the operation is asynchronous.

Authorizations

KEY
string
header
required

Broker API Key, created through the project administrator's process.

Headers

Timestamp
string
required

Unix timestamp in seconds; the gateway allows at most 60 seconds of clock skew.

SIGN
string
required

Hexadecimal HMAC-SHA512 signature over the external request path, query string, and body.

X-User-Wallet-Address
string
required

End-user wallet address. The gateway checks that this wallet belongs to the current Broker.

Body

application/json
token_id
string
required
side
enum<string>
required
Available options:
BUY,
SELL
price
string
size
string
total_cost
string
order_type
enum<string>

Time-in-force: GTC, GTD, FOK, or FAK

Available options:
GTC,
GTD,
FOK,
FAK
order_mode
enum<string>

Execution mode: LIMIT or MARKET

Available options:
LIMIT,
MARKET
client_order_id
string
post_only
boolean
sell_all
boolean
expire_time
integer

Response

Request succeeded

Response object.

client_order_id
string
created_at
integer
order_id
string
status
enum<string>
Available options:
processing