Strategy
Stream strategy code generation token-by-token (SSE)
post/api/v1/generate/stream
Request
- Base URL: https://api.quantifyme.ai
- URL: https://api.quantifyme.ai/api/v1/generate/stream
- Auth: API key in header X-API-Key
Request body
Example request
{
"aux_feeds": [
{
"symbol": "USDCHF",
"timeframe": "15min"
}
],
"end_date": "2026-04-01",
"features": "RSI 14, Bollinger Bands",
"indicators": {
"macd_enabled": true,
"macd_fast": 12,
"macd_signal": 9,
"macd_slow": 26,
"rsi_enabled": true,
"rsi_period": 14
},
"model": "Random Forest",
"pos_rules": {
"max_pos": 1
},
"risk": "0.5% stop loss",
"signals": "Buy when RSI < 30",
"start_date": "2025-01-01",
"train_split": 0.7
}Response
SSE stream. Events: token {text}, done {code}, error {error}. — Server-Sent Events stream. Each message is event: <type>\ndata: <json>\n\n.
Changes
No recorded changes to this operation across all 1 revision of this API.