Get account history (Beta)

Retrieves the trading history and account events for a specified smart account address.
This includes trades, transfers (deposits/withdrawals), settlements, and funding events with standardized event structures, advanced filtering, and cursor-based pagination for efficient retrieval.

This endpoint is currently in Beta and has not been fully validated in production yet.

Features:

  • Cursor-based pagination: Efficient retrieval of large datasets with cursor and next_cursor
  • Advanced filtering: Filter by event types, actions, markets, and transfer types
  • Sorting: Sort results by timestamp or realized P&L (ascending or descending)
  • Standardized events: Consistent event structure across all event types with typed data field

Available Event Types:

  • trade: Trade execution events (buy/sell)
  • transfer: Deposit and withdrawal events
  • settlement: Option settlement events
  • funding: Funding rate payment events

Available Actions (for filtering):

  • Trade actions: buy, sell
  • Transfer actions: deposit, withdrawal
  • Settlement actions: settlement
  • Funding actions: funding
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required
^0x[a-fA-F0-9]{40}$

The smart account address to retrieve history for

string

Pagination cursor from a previous response's next_cursor field.
Use this to retrieve the next page of results.

string
enum
Defaults to timestamp

Field to sort results by. Defaults to timestamp.
Use realized_pnl to sort by P&L (only applies to trade and settlement events).

Allowed:
string
enum
Defaults to desc

Sort direction. Defaults to desc (newest/highest first).

Allowed:
integer
1704067200000 to 2019686400000

Start timestamp (Unix milliseconds) for the history query.
Must be between 2024-01-01 and 2034-01-01.
Defaults to 30 days ago if not specified.

integer
1704067200000 to 2019686400000

End timestamp (Unix milliseconds) for the history query.
Must be between 2024-01-01 and 2034-01-01.
Defaults to current time if not specified.

integer
1 to 1000
Defaults to 100

Maximum number of events to return per page. Defaults to 100.

string

Comma-separated list of event types to filter by.
Available types: trade, transfer, settlement, funding

string

Comma-separated list of actions to filter by.
Examples: buy, sell, deposit, withdrawal, settlement

string
enum

Filter transfer events by type:

  • internal: Transfers between margin accounts (same smart account)
  • external: Transfers to/from external wallets
Allowed:
string

Comma-separated list of markets to filter by.
Filters events by instrument name prefix (e.g., BTC matches BTC_USDC-PERPETUAL).
Available markets: BTC, ETH, ARB

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json