Order

GET /order

Retrieve an order. Requires a valid API key sent with the x-api-key header.

Query parameters

  • id string Required

    ID of order

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code integer

      Response code

    • msg string

      Diagnostic message

    • result object

      Request result

      Hide result attributes Show result attributes object
  • 503 application/json

    Error

    Hide response attributes Show response attributes object
GET /order
curl \
 -X GET https://api.testnet.everstrike.io/order?id=string \
 -H "x-api-key: $API_KEY"
Response examples (200)
{
  "code": 200,
  "msg": "null",
  "result": {
    "id": "781a8e80393f11e98e2643f8c5a993ce",
    "oco": null,
    "pair": "USD_BTCCALL_PERP",
    "side": "SELL",
    "time": 1551128037224,
    "type": "LIMIT",
    "fills": [],
    "price": 200,
    "hidden": false,
    "status": "ACTIVE",
    "icebergs": null,
    "qty_orig": 0.02225,
    "post_only": false,
    "price_orig": 200,
    "reduce_only": false,
    "qty_orig_usd": 3.09956993634425,
    "qty_remaining": 0.02225,
    "time_in_force": "GTC",
    "trigger_event": null,
    "trigger_price": null,
    "close_on_trigger": false
  }
}
Response examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}