Fills

GET /fills

Retrieve your fills. 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 trades for (in milliseconds UNIX time)

  • end integer

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

  • limit integer

    Amount of fills to get (default is 100)

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code integer

      Response code

    • msg string

      Diagnostic message

    • result array[object]

      Request result

      Order

      Hide result attributes Show result attributes object
      • pair string

        Market

      • is_buyer_maker boolean

        Is the buyer maker?

      • qty number

        Trade quantity

      • qty_usd number

        USD Trade quantity

      • price number

        Trade price

      • gross_commission number
      • net_commission number
      • gross_commission_asset string
      • net_commission_asset string
      • liquidation boolean

        Is the trade a result of a liquidation?

      • id string

        Trade ID

      • time number

        Time that the trade took place, in milliseconds

  • 503 application/json

    Error

    Hide response attributes Show response attributes object
    • code integer
    • msg string
    • result object
GET /fills
curl \
 --request GET 'https://api.testnet.everstrike.io/fills' \
 --header "x-api-key: $API_KEY"
Response examples (200)
{
  "code": 200,
  "msg": "null",
  "result": [
    {
      "qty": 940,
      "cost": 7089010,
      "pair": "USD_BTCCALL_PERP",
      "side": "SELL",
      "time": 1578322600590,
      "type": "MARKET",
      "price": 7541.5,
      "qty_usd": 940,
      "discount": 0,
      "liquidation": false,
      "is_buyer_maker": true,
      "net_commission": 0.564,
      "conversion_rate": null,
      "gross_commission": 0.564,
      "net_commission_usd": 0.564,
      "net_commission_asset": "USD",
      "gross_commission_asset": "USD"
    }
  ]
}
Response examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}