Headline AI: Instant Sentiment from Financial News
2 min
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 analyzing sentiment takes time that traders normally don’t have, especially in fast scalping scenarios.
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 --request POST \
--url https://trading-headline-ai.p.rapidapi.com/predict \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-host: trading-headline-ai.p.rapidapi.com' \
--header 'x-rapidapi-key: <your-api-key>' \
--data '{"text":"Us Jobs Beat Expectations As Unemployment Holds At 4.3%"}'
* you can get your free api-key on RapidAPI
You can expect a response such as:
{
"headline": "Us Jobs Beat Expectations As Unemployment Holds At 4.3%",
"prediction": "DOWN",
"confidence": 0.929,
"user": "testuser@test.email",
"remainingCredits": 633,
"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 keep control of your trades even on 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?