Lighter Get Markets
Get available markets on Lighter (zk-orderbook perp DEX) with trading parameters and live stats. Returns symbol, market id, price/size decimals, minimum order amounts, fees, max leverage, last price, open interest, and 24h volume; filter by marketId, symbol, or marketType (perp/spot/all, default perp). Ideal for: building market selectors, validating order parameters, and monitoring market activity.
Catalog action Lighter
Get available markets on Lighter (zk-orderbook perp DEX) with trading parameters and live stats. Returns symbol, market id, price/size decimals, minimum order amounts, fees, max leverage, last price, open interest, and 24h volume; filter by marketId, symbol, or marketType (perp/spot/all, default perp). Ideal for: building market selectors, validating order parameters, and monitoring market activity.
At a Glance
| Field | Value |
|---|---|
| Action ID | lighter-get-markets |
| Category | Lighter |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | perps, trading, dex, market-data |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
marketId | number | No | Fetch a single market by Lighter market id (e.g. 0 = ETH perp). Takes precedence over marketType and symbol. |
symbol | string | No | Filter to a single symbol, case-insensitive (e.g. ETH, BTC, SOL). Omit for all markets. |
marketType | string | No | Which market list to return. Defaults to perp (Lighter's primary product). |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
markets | array | Yes | Lighter markets sorted by marketId ascending |
Examples
json{ "type": "lighter-get-markets", "payload": { "marketId": 1, "symbol": "ETH", "marketType": "perp" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/lighter-get-markets/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "marketId": 1, "symbol": "ETH", "marketType": "perp" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
