LogoLogo
  • Introduction
  • Get started
  • Trading Account
  • Signing
  • REST API
    • Account
      • Get Account Info
      • Get Positions
      • Get ABR payments
    • Market
      • Get Markets
      • Get Assets
      • Get Orderbook
    • Trade
      • Create Order
      • Cancel Order
      • Query order
      • List historical orders
      • List active orders
      • Trade list
    • Time
  • Web Sockets
    • Authentication
    • Connectivity check
    • Subscription
    • Public topics
      • trade
      • marketInfo
      • orderBook
      • accountCreated
      • kline
    • Private topics
      • conditionalOrder
      • balance
      • order
      • fill
  • Glossary
Powered by GitBook
On this page
  1. REST API
  2. Trade

Query order

Returns query given id

PreviousCancel OrderNextList historical orders

Last updated 1 year ago

post
Body
orderIdstringRequired

Order ID

Responses
200Success
application/json
post
POST /v1/private/order/query HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "orderId": "text"
}
200Success
{
  "id": "text",
  "accountId": "text",
  "signature": [
    "S1",
    "S2"
  ],
  "marketId": "BTCUSD",
  "type": "MARKET",
  "side": "BUY",
  "direction": "LONG",
  "status": "CREATED",
  "isPendingExpiration": true,
  "isPendingCancellation": true,
  "isPendingRejection": true,
  "price": 1,
  "quantity": 1,
  "quantityLocked": 1,
  "quantityFilled": 1,
  "leverage": 1,
  "slippage": 1,
  "postOnly": true,
  "timeInForce": "GTC",
  "clientTimestamp": 1708456721657,
  "rejectionReason": {
    "code": "text",
    "message": "text"
  },
  "createdAt": 1,
  "updatedAt": 1,
  "expiresAt": 1
}