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 freeMost recent executed trades for a market.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
market_id | query | int | required | Market ID (0 = ETH). example: 0 |
limit | query | int | required | Number 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"