Headline AI: Instant Sentiment from Financial News

2 min
Headline AI: Instant Sentiment from Financial News

In the fast-paced world of trading, financial headlines can make or break your strategy. A snippet like “Fed Signals Rate Cut” might signal a rally, while “Hormuz Strait Opens/closes Again” disrupts oil flows and ripples across all markets. Manually parsing sentiment takes time you probably don’t have.

Trading Headline AI is my open-source API that supercharges your analysis with AI. Powered by ProsusAI/finbert —a finance-specialized BERT model— it instantly predicts if headlines signal market UP or DOWN movements with confidence scores.

How It Works

Send a headline via POST to the /predict endpoint:

curl -X 'POST' \
  'https://mcprod.icu/trading-api/predict' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "US JOBS BEAT EXPECTATIONS AS UNEMPLOYMENT HOLDS AT 4.3%",
  "source": "Manual Test"
}'

You can expect a response such as:

{
  "headline": "US JOBS BEAT EXPECTATIONS AS UNEMPLOYEMENT HOLDS AT 4.3%",
  "prediction": "UP",
  "confidence": 0.862,
  "status": "success"
}

Key features:

  • Finance-tuned AI: FinBERT excels at market sentiment from news.
  • Simple predictions: “UP” or “DOWN” with confidence (0-1 scale).
  • Trading-ready: Feed into bots, alerts, or strategies.
  • Live & scalable: Deployed and available for consumption; full source on GitLab.

Trading Headline AI is the ideal API to stay under control even during disruptive events turning markets against you. If you want to host the API on your OCI instance (Oracle Cloud Infrastructure), check out the GitLab repo for setup and docs!

Ready to test your headlines?