Trending Markets by Live Activity
Endpoint
Section titled “Endpoint”GET /markets/live-activity
Server: https://api.openfish.fun
Tags: Misc
Useful for highlighting hot or trending markets. The rolling window and result count are both adjustable.
Request Parameters
Section titled “Request Parameters”| Name | In | Type | Default | Description |
|---|---|---|---|---|
window | query | integer | 60 | Length of the rolling window in minutes (min 1, max 1440) |
limit | query | integer | 20 | Maximum number of markets to return (min 1, max 100) |
Response
Section titled “Response”200 — A JSON array of MarketActivity objects, sorted by volume descending.
[ { "conditionId": "0xdef...", "volume": "25000.50", "tradeCount": 342, "lastTradeTs": 1700000000 }, { "conditionId": "0xabc...", "volume": "18500.00", "tradeCount": 215, "lastTradeTs": 1699999500 }]curl "https://api.openfish.fun/markets/live-activity?window=30&limit=10"