Get all fullcover orders for an account.
Changed onRequest
- Base URLhttps://api.smarkets.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Order states to filter by. By default all order states are returned
[ "created" ]
Maximum number of orders to be retrieved in one API call
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.
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
queryrequest parameterinclude_promotion_data - info
for the
queryrequest parameterpagination_last_id, the format was generalized fromuuidto no format - info
added the optional property
//to the response with the status - info
the response property
//became required for the status
- breaking
- info
added the optional property
//to the response with the status
- info