Skip to main content
POST
/
v1
/
orders-feed
/
initial
/
state
curl -sS -X POST "https://analytics.snek.fun/v1/orders-feed/initial/state?asset=fbd4d3c3...44415645&offset=0&limit=50" \
  -H "Content-Type: application/json" \
  -d '[]'
Auth: Public

POST /v1/orders-feed/initial/state

Returns confirmed orders (ledger) and pending mempool orders (mempool) for one pool.

Query parameters

asset
string
required
Pool token asset id.
offset
integer
Pagination offset (default 0).
limit
integer
Page size (default 100, max 100).

Request body

JSON value: either null, or an array of payment key hashes (56-char hex) to restrict to specific makers.
  • null or omit: all addresses.
  • []: same as no filter in practice (all).
  • ["pkh1…"]: only orders from those PKHs.

Response

{
  "ledger": { "count": 120, "items": [ /* ApiOrder */ ] },
  "mempool": [ /* ApiOrder */ ]
}
ApiOrder fields include entityId, beacon, from, fromAmount, to, toAmount, address, worstPrice, transaction ids, timestamp, status, orderType, pkh, etc.
curl -sS -X POST "https://analytics.snek.fun/v1/orders-feed/initial/state?asset=fbd4d3c3...44415645&offset=0&limit=50" \
  -H "Content-Type: application/json" \
  -d '[]'

GET /v1/orders-feed/metrics

Returns optional per-address trading stats for the pool.

Query parameters

asset
string
required
Pool asset id.
pkh
string
required
56-character payment key hash.

Response

Metrics object or null if no data.
curl -sS "https://analytics.snek.fun/v1/orders-feed/metrics?asset=…&pkh=…"

WebSocket

Subscribe to LiveOrdersFeed with asset and optional pkhFilter in the subscribe payload. See WebSocket.