GET /api/v1/recentTrades

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/lighter/api/v1/recentTradesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Most recent executed trades for a market.

Parameters

nameintypedescription
market_idqueryintrequiredMarket ID (0 = ETH).
example: 0
limitqueryintrequiredNumber of trades (1..100).
example: 5

Response

type: object
data key: trades
pagination: none
sample: {
  "code": "int",
  "trades": "array[5]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/lighter/api/v1/recentTrades?market_id=0&limit=5"