Retrieve Specific Account Activities
GET {{baseUrl}}/v1/accounts/activities/:activity_type
Retrieves an Array of Activies by type
If {activity_type} is provided as part of the URL, category cannot be provided as query parameter. They are mutually exclusive.
Notes:
* Pagination is handled using the page_token and page_size parameters.
* page_token represents the ID of the end of your current page of results.
for example if in your first response the id of the last Activiy item returned in the array was 20220203000000000::045b3b8d-c566-4bef-b741-2bf598dd6ae7, you'd pass that value as page_token to get the next page of results
- If specified with a
directionofdesc, for example, the results will end before the activity with the specified ID. - If specified with a
directionofasc, results will begin with the activity immediately after the one specified. page_sizeis the maximum number of entries to return in the response.- If
dateis not specified, the default and maximum value is 100. - If
dateis specified, the default behavior is to return all results, and there is no maximum page size.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
account_id | string | id of a single account to filter by | |
date | string | Both formats YYYY-MM-DD and YYYY-MM-DDTHH:MM:SSZ supported. | |
until | string | Both formats YYYY-MM-DD and YYYY-MM-DDTHH:MM:SSZ supported. | |
after | string | Both formats YYYY-MM-DD and YYYY-MM-DDTHH:MM:SSZ supported. | |
direction | string | The chronological order of response based on the submission time. asc or desc. Defaults to desc. | |
page_size | number | The maximum number of entries to return in the response | |
page_token | string | The ID of the end of your current page of results |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
[{"id":"20220208125959696::88b5f678-fef5-447b-af15-f21e367e6d8c","activity_type":"REORG","account_id":"c8f1ef5d-edc0-4f23-9ee4-378f19cb92a4","transaction_time":"2021-05-10T14:01:04.650275Z","type":"fill","price":"3.1415","qty":"0.38921","side":"buy","symbol":"AAPL","leaves_qty":"0.5123","order_id":"fe060a1b-5b45-4eba-ba46-c3a3345d8255","cum_qty":"0.9723","order_status":"filled"}]