CCXT
lighter

lighter implicit API

Every raw lighter endpoint exposed as a CCXT implicit method — names, HTTP verbs, paths and rate-limit costs.

Every endpoint in lighter's api definition is exposed as an implicit method — a thin, generated wrapper around the raw exchange endpoint. Use these for exchange-specific functionality the CCXT API does not cover.

These methods are available in every CCXT language — TypeScript, JavaScript, Python, PHP, C# and Go. Call them by the camelCase name shown in the tables below (e.g. rootGet); the snake_case alias (root_get_) also works in JavaScript, Python and PHP, and Go uses the PascalCase form (RootGet). Switch tabs for the call in each language:

const lighter = new ccxt.lighter ();
const response = await lighter.rootGet (params);

Path parameters wrapped in {} (e.g. {pair}) are substituted from params; everything else in params is sent as the query string or request body. Cost is the rate-limiter weight of each call.

📚 Official lighter API documentation: apidocs.lighter.xyz

46 implicit endpoints across 3 access groups.

root

Base URL: https://mainnet.{hostname}

MethodHTTPEndpointCost
rootGetGET``1
rootGetInfoGETinfo1

public

Base URL: https://mainnet.{hostname}

MethodHTTPEndpointCost
publicGetAccountGETaccount1
publicGetAccountsByL1AddressGETaccountsByL1Address1
publicGetApikeysGETapikeys1
publicGetExchangeStatsGETexchangeStats1
publicGetAssetDetailsGETassetDetails1
publicGetOrderBookDetailsGETorderBookDetails1
publicGetOrderBookOrdersGETorderBookOrders1
publicGetOrderBooksGETorderBooks1
publicGetRecentTradesGETrecentTrades1
publicGetBlockTxsGETblockTxs1
publicGetNextNonceGETnextNonce1
publicGetTxGETtx1
publicGetTxFromL1TxHashGETtxFromL1TxHash1
publicGetTxsGETtxs1
publicGetAnnouncementGETannouncement1
publicGetBlockGETblock1
publicGetBlocksGETblocks1
publicGetCurrentHeightGETcurrentHeight1
publicGetCandlesGETcandles1
publicGetFundingsGETfundings1
publicGetFastbridgeInfoGETfastbridge/info1
publicGetFundingRatesGETfunding-rates1
publicGetWithdrawalDelayGETwithdrawalDelay1
publicPostSendTxPOSTsendTx1
publicPostSendTxBatchPOSTsendTxBatch1

private

Base URL: https://mainnet.{hostname}

MethodHTTPEndpointCost
privateGetAccountLimitsGETaccountLimits1
privateGetAccountMetadataGETaccountMetadata1
privateGetPnlGETpnl1
privateGetL1MetadataGETl1Metadata1
privateGetLiquidationsGETliquidations1
privateGetPositionFundingGETpositionFunding1
privateGetPublicPoolsMetadataGETpublicPoolsMetadata1
privateGetAccountActiveOrdersGETaccountActiveOrders1
privateGetAccountInactiveOrdersGETaccountInactiveOrders1
privateGetExportGETexport1
privateGetTradesGETtrades1
privateGetAccountTxsGETaccountTxs1
privateGetDepositHistoryGETdeposit/history1
privateGetTransferHistoryGETtransfer/history1
privateGetWithdrawHistoryGETwithdraw/history1
privateGetReferralPointsGETreferral/points1
privateGetTransferFeeInfoGETtransferFeeInfo1
privatePostChangeAccountTierPOSTchangeAccountTier1
privatePostNotificationAckPOSTnotification/ack1

On this page