Access Token·InactiveLog in to your Public account to generate your access code.
Account Details

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.

GET/userapigateway/trading/{accountId}/history

Parameters

Path Parameters

string

Target account ID.

Query Parameters

string

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"

string

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"

integer

Maximum number of records to return.

string

Pagination token for fetching the next result set.

Parameters

NameTypeRequiredDescription
accountIdstringYesTarget account ID.
startstring (date-time)NoStart 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"
endstring (date-time)NoEnd 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"
pageSizeinteger (int32)NoMaximum number of records to return.
nextTokenstringNoPagination token for fetching the next result set.

Body

application/json

No request body defined

Responses

Response

200
application/json
transactionsobject[]

List of transactions

nextTokenstring

Token to retrieve the next page of results

startstring

Start timestamp of the history query

endstring

End timestamp of the history query

pageSizeinteger

Number of items to return

Response

400application/json

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
}
The Public Individual API is for your own personal, non-commercial use. Unauthorized access is prohibited. You are responsible for all trades made via the API. Learn more