- REST reference
- Market context
- Breaking news
List breaking news
GET/public/v1/breaking-news
Market-moving events from the last hours. Headline titles only: no source name, article URL or article text.
Request
curl "https://api.tradeeasyai.net/public/v1/breaking-news?hours=24" \
-H "X-API-Key: $TRADEEASY_API_KEY"Response shape
Field names and types; no sample values.
{
"success": true,
"data": {
"events": [ … ],
"hours": "<integer>",
"total": "<integer>"
},
"meta": { "timestamp": "<string>", "request_id": "<string>" }
}Parameters#
- hoursintegerquery
Hours to look back, 1 to 168. Default 24.
- event_typestringquery
Only events of this type.
Response fields#
- events[]array
Newest first.
- events[].idinteger
Id for /breaking-news/{event_id}.
- events[].titlestring
The headline title.
- events[].event_typestring
Event category.
- events[].assets_affectedarray
Assets the event is tagged to.
- events[].detected_atstring · ISO 8601
When TradeEasy detected it.
- hoursinteger
The window you asked for.
- totalinteger
Number of events returned.
Events also carry categories, corroboration and TradeEasy’s impact and direction tags (impact_score, sentiment_direction); those are model outputs, documented by name only.
Errors#
- 401detail
Missing, invalid or revoked key, or a locked account. FastAPI {"detail": …} body, not the envelope.
- 403detail
The plan does not include the REST API, or the subscription is not active.
- 422detail[]
A query value is outside its range (FastAPI validation).
- 429RATE_LIMIT_EXCEEDED
Per-key minute or day bucket spent. Honour Retry-After.
- 500FETCH_FAILED
Unexpected read failure. Retry with backoff.
- 503SERVICE_UNAVAILABLE
The news service is unavailable. Retry.
