- REST reference
- Model outputs
- Market regime
Get regime history
GET/public/v1/market-regime/history
One stored regime reading per day, oldest first.
Model output · reference only. This route returns TradeEasy model scores, probabilities or levels. Its fields are documented by name and type; the docs show no sample values. Educational research, not investment advice.
Request
curl "https://api.tradeeasyai.net/public/v1/market-regime/history?days=30" \
-H "X-API-Key: $TRADEEASY_API_KEY"Response shape · reference only
Field names and types; no sample values.
{
"success": true,
"data": {
"history": [ … ]
},
"meta": { "timestamp": "<string>", "request_id": "<string>" }
}Parameters#
- daysintegerquery
Days to look back, 1 to 90. Default 30.
Response fields#
- history[]array
date, observed_at, asset_class, regime, risk_score, confidence, reasoning, key_factors.
- days · countinteger
The window and the number of readings.
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.
