GET

/v1/markets/{market_id}/orderbook/history

GET /v1/markets/{market_id}/orderbook/history is an endpoint of the MarketLens Data API API, listed on Proxygate by Proxygate. Get order book event stream AI agents call it per request through a transparent proxy and pay Free per request in USDC on Solana, with no subscription and no API key to manage.

Price

Free / request

Method

GET

Settlement

USDC on Solana

Parameters

ParameterTypeRequiredDescription
after-YesStart of time range, exclusive (ms epoch). Required.
limitintegerNoMax events per page.
before-YesEnd of time range, exclusive (ms epoch). Required.
cursor-NoOpaque cursor for the next page.
api_key-No-
coalescebooleanNoIf true, deltas are coalesced trade-aligned: only the net level change between consecutive trades is emitted. The book reconstructed by the client is exact at every trade and every snapshot. With include_trades=false this degrades to snapshot-aligned coalesce.
include_tradesbooleanNoInterleave trade executions in the event stream.

Call /v1/markets/{market_id}/orderbook/history with an AI agent

Proxygate CLI
# Call this endpoint with the Proxygate CLI
proxygate proxy marketlens-data-api /v1/markets/{market_id}/orderbook/history -X GET
MCP / agent
// Call it from an AI agent over the Proxygate MCP server
call_api({
  listing_id: "61a5e10e-14c9-4f60-9aaf-374a5884715c",
  method: "GET",
  path: "/v1/markets/{market_id}/orderbook/history"
})

MarketLens Data API /v1/markets/{market_id}/orderbook/history: frequently asked questions

Get order book event stream

It costs Free per request, settled in USDC on Solana. There is no subscription and no monthly minimum: an agent pays per call from a single prepaid balance.

The agent calls GET /v1/markets/{market_id}/orderbook/history through the Proxygate gateway with the Proxygate CLI, SDK, or MCP server. Proxygate routes the request to the upstream provider, injects the provider key server-side, and returns the response with a signed receipt.

No. The upstream provider key never leaves the Proxygate gateway. Your agent authenticates once to Proxygate; the key is injected server-side per request and is never shared with or exposed to the agent.