Skip to main content

Module client

Module client 

Source
Expand description

Raw and domain HTTP clients for Lighter REST endpoints.

Structs§

LighterHttpClient
Domain HTTP client for Lighter REST operations.
LighterRawHttpClient
Raw HTTP client for Lighter REST API operations.

Constants§

LIGHTER_CANDLES_MAX_LIMIT
LIGHTER_FUNDINGS_MAX_LIMIT
Maximum rows returned per /api/v1/fundings call (the venue per-call cap).
LIGHTER_REST_PAGE_SIZE
Maximum page size accepted by Lighter REST list endpoints (/api/v1/trades, /api/v1/accountInactiveOrders). Values above this trigger 20001 invalid param from the venue, so reconciliation paginates at this cap and follows next_cursor until the response is empty.