Order Entry

Order entry operations

Create order

post
/createOrder

Create a new order (IOC, GTC, SL, TP)

Body
exchangeIdintegerRequiredExample: 1747927089946
symbolstringOptional

Trading symbol (e.g., BTCRUSDPERP, WETHRUSD)

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
accountIdintegerRequiredExample: 1747927089946
isBuybooleanRequired

Whether this is a buy order

Example: true
limitPxstringRequiredExample: 43000.00Pattern: ^-?\d+(\.\d+)?([eE][+-]?\d+)?$
qtystringOptionalExample: 1.0Pattern: ^\d+(\.\d+)?([eE][+-]?\d+)?$
orderTypestring · enumRequired

Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)

Example: LIMITPossible values:
timeInForcestring · enumOptional

Order time in force, exclusively used for LIMIT orders

Example: GTCPossible values:
triggerPxstringOptional

Trigger price, only for TP/SL orders

Example: 43000.00Pattern: ^-?\d+(\.\d+)?([eE][+-]?\d+)?$
reduceOnlybooleanOptional

Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.

Example: false
signaturestringRequired

See signatures and nonces section for more details on how to generate.

Example: 0x1234...
noncestringRequired

Order nonce, see signatures and nonces section for more details.

Example: 1234567890
signerWalletstringRequiredExample: 0x6c51275fd01d5dbd2da194e92f920f8598306df2Pattern: ^0x[a-fA-F0-9]{40}$
expiresAfterintegerOptional

Expiration timestamp (exclusively for PERP IOC orders and all SPOT orders). In seconds since epoch. The order will only be filled before this timestamp.

Example: 1747927089946
clientOrderIdintegerOptional

Client-provided order ID for tracking and correlation. Optional field that allows clients to assign their own unique identifier to orders.

Example: 1747927089946
Other propertiesanyOptional
Responses
post
/createOrder

Cancel order

post
/cancelOrder

Cancel an existing order

Body
orderIdstringOptional

Internal matching engine order ID to cancel. Provide either orderId OR clientOrderId, not both. For spot markets, this is the order ID returned in the CreateOrderResponse.

Example: 490346525705109504
clientOrderIdintegerOptional

Client-provided order ID for tracking and correlation. Provide either orderId OR clientOrderId, not both. This is the same clientOrderId provided in CreateOrderRequest.

Example: 1747927089946
accountIdintegerOptional

Account ID that owns the order. Required for spot markets.

Example: 1747927089946
symbolstringOptional

Market symbol for the order.Required for spot market orders. If not provided, assumes perp market for backwards compatibility.

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
signaturestringRequired

See signatures section for more details on how to generate.

Example: 0x5678...
noncestringOptional

See signatures and nonces section for more details. Compulsory for spot orders.

Example: 1234567890
expiresAfterintegerOptional

Expiration timestamp (exclusively for SPOT orders). In seconds since epoch.

Example: 1747927089946
Other propertiesanyOptional
Responses
post
/cancelOrder

Cancel all orders

post
/cancelAll

Cancel all orders matching the specified filters (mass cancel)

Body

Request to cancel all orders matching the specified filters

accountIdintegerRequired

Account ID to cancel orders for.

Example: 1747927089946
symbolstringOptional

Symbol to cancel orders for. If not specified, cancels orders for all symbols.

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
signaturestringRequired

See signatures and nonces section for more details on how to generate.

Example: 0x1234...
noncestringRequired

See signatures and nonces section for more details.

Example: 1234567890
expiresAfterintegerRequired

Expiration timestamp. In seconds since epoch.

Example: 1747927089946
Other propertiesanyOptional
Responses
post
/cancelAll

Last updated