Skip to main content
GET
/
api
/
v1
/
open-order?market=ETH-USD&order-id=01HZ36SYBP4Z80GRX30P49XHB5
Get Account Open Order By ID
curl --request GET \
  --url 'https://user-account.trade.rails.xyz/api/v1/open-order?market=ETH-USD&order-id=01HZ36SYBP4Z80GRX30P49XHB5' \
  --header 'Authorization: Bearer <token>'
{
  "openOrder": {
    "market": "ETH-USD",
    "orderId": "01HZ36SYBP4Z80GRX30P49XHB5",
    "orderType": "sell",
    "tradeType": "limit",
    "price": "3772.272138",
    "quantity": "1",
    "filledQuantity": "0.5",
    "leverage": "1",
    "createdAt": 1717020981622,
    "updatedAt": 1717020982756,
    "orderStatus": "active",
    "clientRequestId": "0835bf3e-4a20-41f0-908d-8213f2b7a285",
    "postOnly": false,
    "avgFillPrice": "3772.272138"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

market
string
required

Market name. Example value: ETH-USD. To get all supported markets, call /api/v1/markets endpoint.

order-id
string

Unique identifier of the order. Example value: 01J4MD3R7N4HH4G76PT47VG3QC. You can get this value from the create order response.

client-request-id
string

Client-generated UUID for correlation. Example value: 0835bf3e-4a20-41f0-908d-8213f2b7a285. This is the same value as the clientRequestId field in the create order request.

Response

openOrder
object
required

The open order object for the specified ID.