GET /markets/active/{categoryId}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/limitless/markets/active/{categoryId}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeActive markets restricted to one numeric category.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
categoryId | path | int | required | Numeric category id from /markets/categories/count. example: 1 |
page | query | int | optional | One-based page number. example: 1 |
limit | query | int | optional | Rows per page (server caps vary by route; 100 is the widest documented). example: 5 |
sortBy | query | strending_soon | high_value | lp_rewards | newest | trending | optional | Ordering preset for the active-market feed. default: trendingexample: trending |
tradeType | query | stramm | clob | group | optional | Restrict to AMM markets, CLOB markets or grouped (NegRisk) markets. example: clob |
automationType | query | strmanual | lumy | sports | optional | Restrict to human-created, Lumy-generated or sports markets. example: manual |
includeNextMarket | query | bool | optional | Include the upfront-scheduled successor market in the payload. default: Falseexample: True |
Response
type: object
pagination: none
sample: {
"data": "array[5]",
"totalMarketsCount": "int"
}
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/limitless/markets/active/1?page=1&limit=5&sortBy=trending&tradeType=clob&automationType=manual&includeNextMarket=True"