Skip to main content
Returns paginated historical fills. Results are sorted by creation time, newest first.
The examples on this page use Hyperliquid (provider: 'hyperliquid'). Replace the provider value with any supported provider from getProviders().

Parameters

Returns

FillsResponse:

Fill fields

OrderType

FillClassification

Wire values are Title Case strings; the SDK exports the FillClassification enum from @lifi/perps-sdk (keys: OPENED_LONG, OPENED_SHORT, …) whose values match these strings.

Pagination fields

Throws

PerpsError with one code for the account’s access state. See Account access.
  • SetupRequired — the venue needs a credential (a Lighter auth token or an Ondo session) and none is stored.
  • Unauthorized — the venue rejects the credential.
  • AccountNotFound — the wallet has no venue account.
An account with no fills returns an empty items list. Data shapes: getFills — a direct-to-provider read, not a LI.FI HTTP endpoint.