import { type SDKRequestOptions } from '@lifi/perps-sdk'; import type { FillsResponse } from '@lifi/perps-types'; import type { Address } from 'viem'; import type { HyperliquidContext } from '../context.js'; /** * Parameters for {@link getFills}. * * @public */ export interface GetFillsParams { address: Address; /** Maximum items returned; defaults to 50 and is capped at 200. */ limit?: number; /** Opaque cursor returned in the previous page's `pagination.cursor`. */ cursor?: string; /** Inclusive lower bound in milliseconds; selects `userFillsByTime`. */ startTime?: number; /** Inclusive upper bound in milliseconds; selects `userFillsByTime`. */ endTime?: number; } /** * Fetch the user's fills history. When `startTime` or `endTime` is provided, * Hyperliquid's `userFillsByTime` endpoint is used; otherwise the unbounded * `userFills` endpoint returns the full history. The backend's enriched asset * list supplies the display fields; only the fills endpoint is read direct * from HL. * * The response is sorted (time desc, `tid` as tiebreaker) before pagination — * see {@link compareFillsDesc}. The cursor encodes the last returned fill's * `(time, tid)`; the next page keeps fills that sort strictly after it. * @throws {PerpsError} On Hyperliquid REST error, network, or parsing failures. * @public */ export declare const getFills: ({ client, apiUrl }: HyperliquidContext, params: GetFillsParams, options?: SDKRequestOptions) => Promise; //# sourceMappingURL=getFills.d.ts.map