Market Sentiment API

Endpoint: /api/stocks/sentiment
Method: GET
Description: Fetches sentiment analysis based on social media, news, or forums.
Parameters:

  • ticker (string, required): Stock ticker symbol.
  • source (string, optional): Source of sentiment (e.g., Twitter, News, Forums).

Response:

jsonCopyEdit{
  "status": "success",
  "data": {
    "ticker": "AAPL",
    "sentiment_score": 0.8,
    "sentiment_label": "Positive",
    "source": "Twitter",
    "timestamp": "2025-01-25T14:30:00Z"
  }
}