get_trending_stocks
Returns currently trending stocks that recently received analyst ratings.
Args:
num: Number of results (default 20)
filter: exactly one of 'analysts', 'bloggers', 'both'. Anything else is
refused — the feed would otherwise answer it with the 'both' list.
daysAgo: Days to look back: 3, 7, or any number from 30 up. Every other value
(1, 2, 14…) is rejected by the feed. Default 7. Pass 30 or more when
filtering by sector or country to ensure enough results — narrow
windows often return fewer than 5 stocks in a specific sector.
trendingType: exactly 'best-rated' or 'worst-rated' (empty for all). Anything
else is refused — the feed would otherwise return the unranked list.
country: 'US','Canada','UK','Germany','Israel','Australia' etc.
sector: One of energy, financial, general, healthcare, industrials, services,
technology, utilities. Empty for all sectors. This feed answers a
sector it does not recognise with financial stocks rather than an
error, so anything outside that list comes back refused instead.
Rows returned for 'energy' are energy companies (Exxon, Chevron, BP)
even though the feed tags them UTILITIES.
Returns: ticker, SmartScore, analyst/blogger sentiment, hedge fund trend,
price target, buy/hold/sell counts per stock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | ||
| filter | No | Exactly one of 'analysts', 'bloggers' or 'both' (default: analysts). Any other value is rejected rather than answered. | analysts |
| sector | No | Sector filter: energy, financial, general, healthcare, industrials, services, technology or utilities. Omit for all sectors; a sector outside this list is refused rather than answered. Rows for sector='energy' are energy companies even though the feed labels them UTILITIES. | |
| country | No | Country name, e.g. 'US','Canada','UK','Germany','Israel','Australia' (default: US) | US |
| daysAgo | No | Days to look back: 3, 7, or any number from 30 up — anything else (1, 2, 14…) is rejected. Default 7. Use 30 or more when filtering by sector or country, as narrow windows often return very few stocks. | |
| trendingType | No | Exactly 'best-rated' or 'worst-rated'; omit for all (default). Any other value is rejected rather than silently returning the unranked list. |