Skip to main content
POST
Create Orders
Request Weight: 1 + floor(n / 20) Action Weight: 1 / order

Body

application/json

Order request.

op
object
required
sig
string
required

Signature in hex format

Example:

"0x1234567890..."

salt
integer
required

Salt

Example:

1234567890

ts
integer
required

Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).

Example:

1767225600000

exp
integer

Command-processing deadline in Unix milliseconds, not an order auto-cancel time; the server caps it at now + 5 s, clamps larger values to that cap, and uses that 5 s default when omitted. Values at or before the server's clock are rejected with HTTP 400 (command expired).

Example:

1767225600000

Response

Order ACK response. Order result should be fetched using the get orders endpoint.

status
enum<string>
required
Available options:
ok
oid
integer
required

Order ID

Example:

1234567890

coid
string

Echoed only when the request carried a client_order_id.

Required string length: 32
Pattern: ^[0-9a-f]{32}$
Example:

"550e8400e29b41d4a716446655440000"