File size: 742 Bytes
4fbb755
f6bf24b
4fbb755
f6bf24b
 
4fbb755
f6bf24b
4fbb755
 
 
f6bf24b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: Kronos Forecast API
emoji: 📈
colorFrom: indigo
colorTo: gray
sdk: docker
app_port: 7860
pinned: false
---

# Kronos Forecast API

Backend for a personal SPY/ES forecasting app. Runs the Kronos-mini foundation
model from [shiyu-coder/Kronos](https://github.com/shiyu-coder/Kronos) on CPU.

## Endpoint

`POST {space-url}/api/predict`

Body:
```json
{
  "data": ["SPY", "1h", 360, 24, 30]
}
```
Returns JSON with `history`, `forecast_mean`, `forecast_low`, `forecast_high`,
and a `metrics` object (bullish probability, expected change, vol expansion).

## Setup

The Space's Dockerfile clones the Kronos repo at build time so we can import
the `model` module. See `Dockerfile`.

⚠️ Not financial advice. Educational use only.