Order Status & History
Last updated
POST /api/v1/orders/txtxHash
string
Yes
On-chain transaction hash.
Indexer backfills orderId from chain events.
Same
txHashfrom the same API key returns the existing mapping. AtxHashalready owned by another key returns an error.
GET /api/v1/orders?page=1&limit=10GET /api/v1/orders/tx/{txHash}GET /api/v1/orders/{orderId}orderId must belong to a mapping recorded by the current API key.
openOrder:
orderId
string
On-chain order ID.
userAddress
string
User address.
side
string
Buy or Sell.
type
string
Market or Limit.
tif
string
Time in force.
symbol
string
Symbol.
placeNotional
string
Order notional (0 for limit orders, which use placeQuantity).
placeQuantity
string
Order quantity.
pay
string
Payment amount.
placePrice
string
Order (limit) price.
status
string
placing or canceling.
historyOrder adds:
settleTxHash
string / null
Settlement tx.
settlePrice
string
Execution price.
settlePay
string / null
Actual payment.
settleReceive
string / null
Actual received.
mintFee
string
Mint fee.
protocolFee
string
Protocol fee.
See reference/enums.md for status values.
Last updated