orders

Get all fullcover orders for an account.

Changed on
get/v3/orders/fullcover/

Request

Query parameters

statesstring[]

Order states to filter by. By default all order states are returned

[
  "created"
]
limitinteger

Maximum number of orders to be retrieved in one API call

pagination_last_idstring

Epoch timestamp of the last order from the previous page, so we can fetch the subsequent orders.<br> Pages are sorted by the bet created time descending.

include_promotion_databoolean

Whether to enrich the response with bet token and promotion data.<br> Set to false to skip the promotion lookup when those fields are not needed, in which case they are returned empty

Response

Orders success response

Example response

{
  "orders": [
    {
      "buy_reference_id": "123",
      "cashed_out_amount": 7,
      "cashed_out_quantity": 500,
      "created_datetime": "2012-08-14T00:56:45.291688Z",
      "fullcover_type": "doubles",
      "last_modified_datetime": "2012-08-14T00:56:45.291688Z",
      "number_of_bets": 5,
      "original_bets": [
        {
          "contract_id": "123456",
          "market_id": "128939",
          "price": 5000,
          "quantity": 10000,
          "token_used": {
            "bet_token_type": "free_bet",
            "boost_percent": 1,
            "original_price": 5000
          }
        }
      ],
      "original_contracts": [
        {
          "contract_id": "123456"
        }
      ],
      "potential_returns": 7.8,
      "reference_id": "123",
      "returned_amount": 7.8,
      "side": "buy",
      "state": "created"
    }
  ],
  "pagination": {
    "next_page": "?limit=20&pagination_last_id=1747764000123456"
  }
}

Changes

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • info

      added the new optional query request parameter include_promotion_data

    • info

      for the query request parameter pagination_last_id, the format was generalized from uuid to no format

    • info

      added the optional property // to the response with the status

    • info

      the response property // became required for the status

    • info

      added the optional property // to the response with the status