Get history
Retrieve account history
Fetches a paginated list of historical events for the specified account. Supports optional time range filtering and pagination via a continuation token.
Parameters
Path Parameters
Target account ID.
Query Parameters
Start timestamp in ISO 8601 format with timezone. Example: 2025-01-15T09:00:00-05:00 (9 AM EST, New York time). Formated "YYYY-MM-DDTHH:MM:SSZ"
End timestamp in ISO 8601 format with timezone. Example: 2025-04-10T09:00:00-04:00 (9 AM EDT, New York time). Formated "YYYY-MM-DDTHH:MM:SSZ"
Maximum number of records to return.
Pagination token for fetching the next result set.
Parameters
Name | Type | Required | Description |
---|---|---|---|
accountId | string | Yes | Target account ID. |
start | string (date-time) | No | Start timestamp in ISO 8601 format with timezone. Example: 2025-01-15T09:00:00-05:00 (9 AM EST, New York time). Formated "YYYY-MM-DDTHH:MM:SSZ" |
end | string (date-time) | No | End timestamp in ISO 8601 format with timezone. Example: 2025-04-10T09:00:00-04:00 (9 AM EDT, New York time). Formated "YYYY-MM-DDTHH:MM:SSZ" |
pageSize | integer (int32) | No | Maximum number of records to return. |
nextToken | string | No | Pagination token for fetching the next result set. |
Body
application/jsonNo request body defined
Responses
Response
List of transactions
Token to retrieve the next page of results
Start timestamp of the history query
End timestamp of the history query
Number of items to return
Response
Invalid account ID or access violation.
No response body defined
curl --request GET \
--url https://api.public.com/userapigateway/trading/{accountId}/history \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"transactions": [
{
"timestamp": "2023-11-07T05:31:56Z",
"id": "string",
"type": "TRADE",
"subType": "DEPOSIT",
"accountNumber": "string",
"symbol": "string",
"securityType": "EQUITY",
"side": "BUY",
"description": "string",
"netAmount": "string",
"principalAmount": "string",
"quantity": "string",
"direction": "INCOMING",
"fees": "string"
}
],
"nextToken": "string",
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"pageSize": 123
}