0xArchive · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for 0xArchive Lighter - Order Book API

3 actions 3 updates phrasing extends openapi/0xarchive-lighter-order-book-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for 0xArchive's API. It is a proposal applied on top of the contract, not a document 0xArchive publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 3

$.info
$.paths['/v1/lighter/orderbook/{symbol}'].get
$.paths['/v1/lighter/orderbook/{symbol}/history'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for 0xArchive Lighter - Order Book API
  version: 1.0.0
extends: openapi/0xarchive-lighter-order-book-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-09-26'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 2
- target: $.paths['/v1/lighter/orderbook/{symbol}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a Lighter L2 order book snapshot
      effect: read
      questions:
      - What does a Lighter market's order book look like now?
      - Can I get a Lighter L2 snapshot with order counts at a past time?
      instructions:
      - text: Get the Lighter order book for {symbol}.
        slots:
          symbol: path.symbol
      - text: Get the Lighter L2 book for {symbol} at {timestamp} with depth {depth}.
        slots:
          symbol: path.symbol
          timestamp: query.timestamp
          depth: query.depth
      method: generated
      generated: '2026-09-26'
- target: $.paths['/v1/lighter/orderbook/{symbol}/history'].get
  update:
    x-apievangelist-phrasing:
      intent: Get Lighter L2 order book history
      effect: read
      questions:
      - Can I pull Lighter book snapshots at one-second resolution?
      - When does Lighter order book checkpoint history start?
      instructions:
      - text: Get Lighter order book history for {symbol} from {start} to {end}.
        slots:
          symbol: path.symbol
          start: query.start
          end: query.end
      - text: Pull Lighter book snapshots for {symbol} at {granularity} granularity.
        slots:
          symbol: path.symbol
          granularity: query.granularity
      method: generated
      generated: '2026-09-26'