Skip to content
Eden Engine

Lighter Recent Trades

lighter/recent-trades

The most recent public trades on one Lighter market, newest first: trade id, transaction hash, size, price, USD amount, taker side, block height and timestamp, with the ask and bid order ids as exact strings (ask_id_str, bid_id_str) and account indexes. Choose how many, up to 20. An unknown market id gives an empty trades list.

activeper callv1

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 $0.50.

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

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

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

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

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

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

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "lighter/recent-trades", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "lighter/recent-trades", 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 21, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "market_id",
    "limit"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "maximum": 20,
      "minimum": 1,
      "description": "Number of trades to return, 1 to 20 (newest first)."
    },
    "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",
    "trades"
  ],
  "properties": {
    "code": {
      "type": "number"
    },
    "trades": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "description": "Wrapper with a status code and the trades array.",
  "additionalProperties": true
}