TradingView hotlists (top gainers, losers, most active)
Stock hotlists for a market or exchange, ranked like TradingView's own: top gainers, top losers, most active (volume), most traded (value), most volatile, unusual volume, gap up / gap down, at 52-week high / low, largest by market cap. Each stock: rank, symbol, ticker, name, link, logo, exchange, currency, price, change and change %, gap %, volume, relative volume, value traded, market cap, P/E, sector, industry, daily volatility, 52-week high and low, pre- and post-market change. Filters: exchange, minimum price, volume and market cap. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
list | gainers | losers | active | most_traded | volatile | unusual_volume | gap_up | gap_down | new_high | new_low | largest | Which hotlist (default gainers). Example: gainers |
market | string | Stock market (default america), e.g. america, uk, india, germany, japan, canada, australia, brazil, hongkong. |
exchange | string | Only these exchanges (comma-separated), e.g. NASDAQ, NYSE,AMEX, NSE, LSE. Example: NASDAQ |
min_price | number | Minimum last price. |
min_volume | number | Minimum daily volume. |
min_market_cap | number | Minimum market cap. |
limit | integer | Results per page (1-200, default 50). |
page | integer | Page number. Pass next_page from the previous response. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/tradingview/v1/hotlists?list=gainers" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/tradingview/v1/hotlists",
params={"list": "gainers"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/tradingview/v1/hotlists");
url.searchParams.set("list", "gainers");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).