GET
/
api
/
v1
/
open-order
curl --request GET \
  --url https://user-account.sandbox.rails.xyz/api/v1/open-order \
  --header 'Authorization: Bearer <token>'
{
  "openOrder": {
    "market": "BTC-USD",
    "orderId": "01HZ36SYBP4Z80GRX30P49XHB5",
    "orderType": "buy",
    "tradeType": "limit",
    "price": "65000",
    "quantity": "0.5",
    "filledQuantity": "0.5",
    "leverage": "1",
    "createdAt": 1717020981622,
    "updatedAt": 1717020982756,
    "orderStatus": "active",
    "clientRequestId": "0835bf3e-4a20-41f0-908d-8213f2b7a285",
    "maxSlippage": 0.0065
  }
}
Please provide market as well as order-id or client-request-id but not both in the query parameters.

Authorizations

Authorization
string
header
required

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

Query Parameters

market
string
required

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

order-id
string

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

client-request-id
string

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

Response

200 - application/json
Successful response
openOrder
object