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

  • 200 application/json

    OK

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

    Error

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