Skip to content
Eden Engine

Lighter Market Details

lighter/market-details

Current state of one Lighter exchange market by market id: symbol, status, fees, tick and size decimals, margin fractions, mark price, index price, last trade price, open interest and 24 hour trades, volume, high, low and price change. Market 0 is ETH, 1 is BTC, 2 is SOL.

activeper callv2

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

Lighter

Market data from the public Lighter exchange API (https://mainnet.zklighter.elliot.ai). Served by Eden Engine; not an official Lighter product.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "lighter/market-details" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "lighter/market-details" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "lighter/market-details", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "lighter/market-details", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "market_id"
  ],
  "properties": {
    "market_id": {
      "type": "integer",
      "maximum": 8191,
      "minimum": 0,
      "description": "Lighter market id. 0 is ETH, 1 is BTC, 2 is SOL; perpetual markets use low ids and some ids around 4095 to 4099, spot markets start at 2048 (2048 is ETH/USDC)."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "code",
    "order_book_details",
    "spot_order_book_details"
  ],
  "properties": {
    "code": {
      "type": "number"
    },
    "order_book_details": {
      "type": "array",
      "items": {}
    },
    "spot_order_book_details": {
      "type": "array",
      "items": {}
    }
  },
  "description": "Wrapper with a status code and the market details.",
  "additionalProperties": true
}