Orders

GET /orders

Retrieve your orders. Requires a valid API key sent with the x-api-key header.

Query parameters

  • pair string

    Filter by market (e.g. "USD_BTCCALL_PERP")

  • start integer

    Start of time period to get orders for (in milliseconds UNIX time)

  • end integer

    End of time period to get orders for (in milliseconds UNIX time)

  • limit integer

    Amount of orders to get (default is 100)

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • code integer

      Response code

    • msg string

      Diagnostic message

    • result array[object]

      Order

      Hide result attributes Show result attributes
  • 503

    Error

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