Skip to main content
Returns paginated account activity: deposits, withdrawals, liquidations, and funding payments.
The examples on this page use Hyperliquid (provider: 'hyperliquid'). Replace the provider value with any supported DEX from getProviders().

Filtering by type

Parameters

Returns

ActivitiesResponse:

ActivityType enum

Ondo: getActivity returns only FUNDING, LIQUIDATION, DEPOSIT, and WITHDRAWAL items. TRANSFER is Lighter only, as noted above.

Activity item fields

All items share id, provider, type, and timestamp. Additional fields depend on type: DEPOSIT (DepositActivity): asset (display symbol), amount, counterpartyAddress? (source address, when the venue’s deposit payload names one), explorerLink? (block-explorer URL for the on-chain deposit tx) WITHDRAWAL (WithdrawalActivity): asset (display symbol), amount, fee? (Fee, absent when the venue reports no fee), explorerLink? (block-explorer URL for the on-chain withdrawal tx) FUNDING (FundingActivity): market (MarketDisplay), amount (negative = paid), positionSize, fundingRate LIQUIDATION (LiquidationActivity): liquidatedNotionalPosition?, accountValue?, leverageType? (each absent when the venue reports no such value), liquidatedPositions[] (each with market: MarketDisplay and size?; at least one entry is guaranteed) TRANSFER (TransferActivity): direction ('IN' or 'OUT', relative to the queried account), counterpartyAccountIndex? (L2 account integer — Lighter), counterpartyAddress? (wallet address — Hyperliquid), asset (string symbol), amount, fees? (Fee[], every fee the venue charged, in the order reported — absent when the venue reports no fee), meta?, explorerLink? (block-explorer URL for the on-chain transfer tx). At least one of counterpartyAccountIndex / counterpartyAddress is always present; either may appear alone or alongside the other.

Classification enums

Fill.classification values are drawn from FillClassification. Activity items that originate from non-fill events use one of three single-value classification enums (typically not user-facing — they describe the on-chain event that produced the activity): API Reference: GET /activity