account_activity

Retrieve statement information for your account.

Description

This information should be used for accounting reconciliation.<br> This data is what is being used in <a href="https://smarkets.com/account/statement">our statement page</a>

get/v3/accounts/activity/

Query parameters

timestamp_maxstring date-time

Maximum datetime for records

Maximum datetime for records

timestamp_minstring date-time

Minimum datetime for records

Minimum datetime for records

limitinteger

Maximum number of account activity rows to return on a single call

Maximum number of account activity rows to return on a single call

market_idstring[]

Market IDs to filter by

Market IDs to filter by

[
  "128939"
]
order_idstring[]

Order IDs to filter by

Order IDs to filter by

[
  "1518455672861"
]
pagination_last_seqstring

Last sequence number of the previous page. This parameter should be used for paginated requests

Last sequence number of the previous page. This parameter should be used for paginated requests

pagination_last_subseqstring

Last sub-sequence number of the previous page. This parameter should be used for paginated requests

Last sub-sequence number of the previous page. This parameter should be used for paginated requests

sort'seq,subseq' | '-seq,-subseq'

How to sort the results. When making paginated requests, pagination_last_seq and pagination_last_subseq should be used with the values from the last record of the previous page

How to sort the results. When making paginated requests, pagination_last_seq and pagination_last_subseq should be used with the values from the last record of the previous page

sourcestring[]

Account activity sources to filter by.

Account activity sources to filter by.

[
  "admin.credit"
]
event_infoboolean

Should response be enhanced with include event information

Should response be enhanced with include event information

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

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

Account activity fetch success

Example response

{
  "account_activity": [
    {
      "amount": "-19.00",
      "bet_token_type": "free_bet",
      "bonus_change": "10.00",
      "commission": "2.20",
      "contract_id": "123456",
      "event_id": "565413",
      "exposure": "-50.00",
      "extra": "market_halted",
      "label": "strategy_1",
      "market_id": "128939",
      "money": "483.56",
      "money_change": "2.20",
      "order_id": "1518455672861",
      "price": 5000,
      "quantity": 10000,
      "quantity_change": -290023,
      "quantity_user_currency": 10000,
      "quantity_user_currency_change": -2819,
      "seq": 11423,
      "side": "buy",
      "source": "admin.credit",
      "subseq": 123242,
      "timestamp": "2017-02-01T10:23:54.361612"
    }
  ],
  "contracts": [
    {
      "name": "Arsenal",
      "state_or_outcome": "live"
    }
  ],
  "events": [
    {
      "full_slug": "/sport/horse-racing/ascot/2017/12/22/15:40",
      "name": "15:40",
      "parent_id": "565413",
      "slug": "ascot-2017-12-22T00:00:00-15-40",
      "state": "new",
      "type": "horse_racing_race"
    }
  ],
  "markets": [
    {
      "contract_selections": [
        254245,
        4565452,
        7894545
      ],
      "market_type": {
        "name": "OVER_UNDER",
        "param": "2.5"
      },
      "name": "To win"
    }
  ],
  "pagination": {
    "next_page": "?limit=20&sort=seq,subseq&pagination_last_seq=20&pagination_last_seq=3"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.