Get ML outperformance prediction
stoquant_get_ml_predictionRetrieve the ML model's probability that a ticker will outperform the S&P 500 over 1, 5, or 10 trading days, including classification and model metrics.
Instructions
ML model's probability that the ticker will OUTPERFORM the S&P 500 over the horizon (NOT a buy/hold/sell call). Returns data.prediction with: probability (0-1, chance of outperformance), classification ('bull' = predicted to outperform, 'bear' = underperform), modelVersion, modelAuc, plainLanguage (headline/summary/topDrivers), and isHeuristic (true when the trained model is gated for distribution drift and a heuristic fallback is used — weight it less). Use stoquant_explain_ml_prediction for the feature-level 'why'. horizon is in trading days. Note: early in the US trading day (before ~10am ET), the prediction may not yet be refreshed with intraday data — a null or empty prediction should be treated as 'not yet computed' rather than an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | ||
| horizon | No | Forecast horizon in trading days | 5 |