TradingView-only: news sentiment
market_sentimentAnalyze news-based market sentiment for a ticker using licensed Marketaux scores or local Finviz headline scoring, returning bullish, bearish, and neutral counts plus provider-labeled news consensus.
Instructions
News-based sentiment for a symbol, with no API key required.
Prefers the licensed Marketaux entity sentiment when MARKETAUX_API_TOKEN
is set. Without a token it scores Finviz headlines locally (VADER with a
financial lexicon), deterministic, offline and free. Either way the payload
names the backend in provider/scoring and never fabricates a score
when there is no material to score.
The accompanying data.news block always aggregates the latest 10
stories from TradingView/Marketaux, Finviz and Yahoo, naming every item's
providers and cross-provider consensus. It does not change which backend
computed the sentiment score.
Args: symbol: Ticker. category: News category (used by the Marketaux path only). limit: Headlines to analyse for sentiment.
Returns:
Envelope labelled TRADINGVIEW, FINVIZ or NONE whose data
carries sentiment_score, sentiment_label, the
bullish/bearish/neutral counts, the strongest headlines and the
aggregated news block. NONE describes only an unavailable
sentiment computation, not an absence of independently fetched news.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "market_sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol | Yes | ||
| category | No | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||