We use cookies to ensure you get the best experience on our website. Some of these cookies are provided by third parties. You are free to decide which categories you would like to permit and can withdraw this consent at any time (via cookie preferences link on the footer).
By accepting the necessary cookies, you agree to our privacy policy and terms of service, both located in the footer of the website.
Learn more on our terms of service and privacy policy.
Generated from AskNews API 0.24.95.
asknews api analytics get-asset-sentimentGet the news sentiment for a given asset during a provided period of time.
This endpoint is good for narrow AI, like using in combination with a regressor to forecast prices etc.
GET /v1/analytics/finance/sentimentget_asset_sentimentread-onlyOptions:
| Option | Description |
|---|---|
--asset | The asset name to query for sentiment. Location: query. Type: string. Required. Choices: bitcoin, ethereum, cardano, uniswap, ripple, solana, polkadot, polygon, chainlink, tether, dogecoin, monero, tron, binance, aave, tesla, microsoft, amazon. |
--metric | The metric to obtain. Weighted metrics account for page-rank of original source. Higher page rank sources are weighted more heavily. Location: query. Type: string. Optional. Choices: news_positive, news_negative, news_total, news_positive_weighted, news_negative_weighted, news_total_weighted. Default: "news_positive". |
--date-from | The start date in ISO format Location: query. Type: string. Optional. |
--date-to | The end date in ISO format Location: query. Type: string. Optional. |
All commands support --output human|table|json|jsonl|yaml, --json, API/auth URL
overrides, request timeout, and color control. Result data is written to stdout; diagnostics
are written to stderr.