{ "opencollection": "1.0.0", "info": { "name": "Lighter account order API", "version": "1.0" }, "items": [ { "info": { "name": "order", "type": "folder" }, "items": [ { "info": { "name": "accountActiveOrders", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/accountActiveOrders", "headers": [ { "name": "authorization", "value": "" } ], "params": [ { "name": "account_index", "value": "", "type": "query" }, { "name": "market_id", "value": "", "type": "query", "description": "If not specified, returns active orders for all markets." }, { "name": "market_type", "value": "", "type": "query" } ] }, "docs": "Get account active orders. `auth` can be generated using the SDK." }, { "info": { "name": "accountInactiveOrders", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/accountInactiveOrders", "headers": [ { "name": "authorization", "value": "" } ], "params": [ { "name": "account_index", "value": "", "type": "query" }, { "name": "market_id", "value": "", "type": "query" }, { "name": "ask_filter", "value": "", "type": "query" }, { "name": "between_timestamps", "value": "", "type": "query" }, { "name": "cursor", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "market_type", "value": "", "type": "query" } ] }, "docs": "Get account inactive orders. `auth` can be generated using the SDK." }, { "info": { "name": "assetDetails", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/assetDetails", "params": [ { "name": "asset_id", "value": "", "type": "query" } ] }, "docs": "Get asset details for a specific asset or all assets" }, { "info": { "name": "exchangeStats", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/exchangeStats" }, "docs": "Get exchange stats" }, { "info": { "name": "export", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/export", "headers": [ { "name": "authorization", "value": "" } ], "params": [ { "name": "account_index", "value": "", "type": "query" }, { "name": "market_id", "value": "", "type": "query" }, { "name": "type", "value": "", "type": "query" }, { "name": "start_timestamp", "value": "", "type": "query" }, { "name": "end_timestamp", "value": "", "type": "query" }, { "name": "side", "value": "", "type": "query" }, { "name": "role", "value": "", "type": "query" }, { "name": "trade_type", "value": "", "type": "query" } ] }, "docs": "Export trades and funding payments, limited to 12 months or 1M trades. END_TS_IN_MS - START_TS_IN_MS should not be larger than 12 months in milliseconds, both timestamps should be greater than or equal to 17 January 2025 00:00:00 UTC (lighter's mainnet genesis)" }, { "info": { "name": "orderBookDetails", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/orderBookDetails", "params": [ { "name": "market_id", "value": "", "type": "query" }, { "name": "filter", "value": "", "type": "query", "description": "Filter order books by type" } ] }, "docs": "Get order books metadata" }, { "info": { "name": "orderBookOrders", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/orderBookOrders", "params": [ { "name": "market_id", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" } ] }, "docs": "Get order book orders" }, { "info": { "name": "orderBooks", "type": "http" }, "http": { "method": "GET", "url": "https://mainnet.zklighter.elliot.ai/api/v1/orderBooks", "params": [ { "name": "market_id", "value": "", "type": "query" }, { "name": "filter", "value": "", "type": "query" } ] }, "docs": "Get order books metadata.