OHLCV

GET /ohlcv

Retrieve candlestick data for a specific market.

Query parameters

  • pair string Required

    Market to get candles for (e.g. USD_BTCCALL_PERP)

  • start integer

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

  • end integer

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

  • limit integer

    Amount of candles to get (default is 250)

Responses

GET /ohlcv
curl \
 -X GET https://api.testnet.everstrike.io/ohlcv?pair=string
Response examples (200)
{
  "code": 200,
  "msg": "null",
  "result": [
    {
      "low": 0.00414,
      "high": 180,
      "open": 0.03446,
      "close": 0.027,
      "trades": 130,
      "last_qty": 0.01149,
      "open_time": 1550969804300,
      "close_time": 1550970104300,
      "last_price": 0.027,
      "base_volume": 5.608289999999999,
      "quote_volume": 73.68101364710009
    },
    {
      "low": 0.00463,
      "high": 0.09911,
      "open": 0.09911,
      "close": 0.09854,
      "trades": 55,
      "last_qty": 10,
      "open_time": 1550970104300,
      "close_time": 1550970404300,
      "last_price": 0.09854,
      "base_volume": 34.6935,
      "quote_volume": "2.8099507821999996"
    },
    {
      "low": 0.00637,
      "high": 0.09773,
      "open": 0.06534,
      "close": 0.05404,
      "trades": 26,
      "last_qty": 0.01246,
      "open_time": 1550970484750,
      "close_time": 1550970784750,
      "last_price": 0.05404,
      "base_volume": "2.6857699999999998",
      "quote_volume": "0.12912486350000002"
    },
    {
      "low": 0.00203,
      "high": 0.09886,
      "open": 0.09146,
      "close": 0.00203,
      "trades": 44,
      "last_qty": 0.39232,
      "open_time": 1550970784750,
      "close_time": 1550971084750,
      "last_price": 0.00203,
      "base_volume": "3.3757099999999998",
      "quote_volume": "0.23631979009999998"
    }
  ]
}
Response examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}