Lighter API
Lighter decentralised perpetuals exchange integration.
This package contains two Lighter integration surfaces.
The public vault-data surface extracts Lighter pool data via public endpoints, mirroring the Hyperliquid integration and GRVT integration:
Pool listing via the public
/api/v1/publicPoolsMetadataendpointPer-pool share price history from
/api/v1/accountDuckDB storage for daily metrics
Bridge into the ERC-4626 pipeline (VaultDatabase pickle + uncleaned Parquet)
No authentication is required for this vault-data path – all data comes from public endpoints.
The guarded Lagoon/Safe surface supports the manual mainnet custody lifecycle:
Guard whitelisting for Lighter
deposit/withdraw/withdrawPendingBalanceL1 callsSafe-owned
changePubKeyAPI-key registrationLagoon-vault helpers for USDC deposits, secure Lighter withdrawals and pending-balance claims
Account valuation via public Lighter account NAV fields
Small manual ETH perpetual round trips through the optional Lighter SDK
Tutorials
Lighter: benchmark pools - Benchmark Lighter pool performance, equity curves, and rolling returns
For architecture details, API endpoint reference, DuckDB schema, and fee model documentation, see README-lighter-vaults.md.
Lighter pool data extraction and analysis. |
|
Lighter account valuation. |
|
Lighter daily pool metrics with DuckDB storage. |
|
Export Lighter pool data into the ERC-4626 pipeline format. |
|
HTTP session management for Lighter API. |
|
Constants for the Lighter integration. |
|
Lighter API helpers for manual trading workflows. |
|
Lighter guard whitelisting and library deployment. |
|
Lagoon vault helpers for Lighter L1 custody. |
|
Lighter API-key registration ( |
|
Anvil-fork test helpers for the Lighter guard integration. |
Guard integration
For depositing into and withdrawing from Lighter through an asset-managed
Gnosis Safe governed by GuardV0 / TradingStrategyModuleV0, see
eth_defi.lighter.deployment and the
README-lighter-guard.md
architecture and security notes.