Trades

GET /trades

Retrieve the latest trades for a specific market.

Query parameters

  • pair string Required

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

  • start integer

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

  • end integer

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

  • limit integer

    Amount of trades to get (default is 100)

Responses

GET /trades
curl \
 -X GET https://api.everstrike.io/trades?pair=string
Response example (200)
{
  "code": 200,
  "msg": "string",
  "result": [
    {
      "pair": "USD_BTCCALL_PERP",
      "is_buyer_maker": true,
      "is_best_match": true,
      "qty": 0.00698,
      "price": 0.06924,
      "id": "c6d30ec0385f11e9a7706b30b08d8b29",
      "time": 1551031962028
    },
    {
      "pair": "USD_BTCCALL_PERP",
      "is_buyer_maker": true,
      "is_best_match": true,
      "qty": 0.01711,
      "price": 0.06909,
      "id": "c6cec900385f11e9833bb5e42787dd91",
      "time": 1551031961996
    },
    {
      "pair": "USD_BTCCALL_PERP",
      "is_buyer_maker": false,
      "is_best_match": true,
      "qty": 0.02666,
      "price": 0.07499,
      "id": "c480ba50385f11e9a818bb1e0fcecae1",
      "time": 1551031958133
    }
  ]
}
Response example (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}