Files
ramseshk aad4ee8cf6 Add ML dashboard panel, paper trader, time decay model
- /api/ml endpoint: per-model raw vs calibrated, typhoon, spatial features
- ML Predictions card in web dashboard (color-coded, sorted by confidence)
- Typhoon Probabilities card (T1/T3/T8 now/72h/120h)
- PaperTrader: simulated trading with portfolio Kelly, P&L tracking,
  trade history persistence, auto-resolution after 24h
- TimeDecayModel: theta decay for binary options
  sigma(t) = sigma_0 * (T-t)^beta (beta=0.4 for weather)
  Fair price convergence from 50%→model_prob as expiry approaches
- Paper trader CLI: --track (monitor), --report, --simulate-days

Run dashboard: python web_dashboard.py  # see ML panel
Run paper:  python ml/paper_trader.py --simulate-days 30
2026-08-11 11:15:43 +08:00

79 lines
2.7 KiB
CSV

date,bankroll
2026-08-11 11:14,1000.0
2026-08-11 11:15,1430.571129983699
2026-08-11 11:15,1869.9228851208563
2026-08-11 11:15,2309.2746402580137
2026-08-11 11:15,2593.77145925936
2026-08-11 11:15,3033.8015537575993
2026-08-11 11:15,3457.8650454555836
2026-08-11 11:15,3885.3876428140006
2026-08-11 11:15,4385.387642814001
2026-08-11 11:15,4885.387642814001
2026-08-11 11:15,5385.387642814001
2026-08-11 11:15,5885.387642814001
2026-08-11 11:15,6057.0007397876425
2026-08-11 11:15,6160.7826990978765
2026-08-11 11:15,6347.768603660328
2026-08-11 11:15,5847.768603660328
2026-08-11 11:15,6347.768603660328
2026-08-11 11:15,6847.768603660328
2026-08-11 11:15,6347.768603660328
2026-08-11 11:15,6847.768603660328
2026-08-11 11:15,7347.768603660328
2026-08-11 11:15,6847.768603660328
2026-08-11 11:15,7215.736592572463
2026-08-11 11:15,7715.736592572463
2026-08-11 11:15,8215.736592572463
2026-08-11 11:15,8715.736592572463
2026-08-11 11:15,9215.736592572463
2026-08-11 11:15,9715.736592572463
2026-08-11 11:15,10215.736592572463
2026-08-11 11:15,10715.736592572463
2026-08-11 11:15,10832.307490599274
2026-08-11 11:15,11332.307490599274
2026-08-11 11:15,11832.307490599274
2026-08-11 11:15,12332.307490599274
2026-08-11 11:15,12832.307490599274
2026-08-11 11:15,13332.307490599274
2026-08-11 11:15,13832.307490599274
2026-08-11 11:15,14332.307490599274
2026-08-11 11:15,14441.807689556865
2026-08-11 11:15,13941.807689556865
2026-08-11 11:15,14441.807689556865
2026-08-11 11:15,14941.807689556865
2026-08-11 11:15,15441.807689556865
2026-08-11 11:15,15941.807689556865
2026-08-11 11:15,16441.807689556867
2026-08-11 11:15,16941.807689556867
2026-08-11 11:15,16441.807689556867
2026-08-11 11:15,16729.018474036096
2026-08-11 11:15,17229.018474036096
2026-08-11 11:15,17729.018474036096
2026-08-11 11:15,18229.018474036096
2026-08-11 11:15,18729.018474036096
2026-08-11 11:15,19229.018474036096
2026-08-11 11:15,19729.018474036096
2026-08-11 11:15,20229.018474036096
2026-08-11 11:15,20356.41021319305
2026-08-11 11:15,20734.229569661333
2026-08-11 11:15,21234.229569661333
2026-08-11 11:15,21734.229569661333
2026-08-11 11:15,22234.229569661333
2026-08-11 11:15,22734.229569661333
2026-08-11 11:15,23234.229569661333
2026-08-11 11:15,23734.229569661333
2026-08-11 11:15,24234.229569661333
2026-08-11 11:15,24371.707348301075
2026-08-11 11:15,24871.707348301075
2026-08-11 11:15,25371.707348301075
2026-08-11 11:15,25871.707348301075
2026-08-11 11:15,26371.707348301075
2026-08-11 11:15,26871.707348301075
2026-08-11 11:15,27371.707348301075
2026-08-11 11:15,27871.707348301075
2026-08-11 11:15,27971.49601527572
2026-08-11 11:15,28345.77538017773
2026-08-11 11:15,28845.77538017773
2026-08-11 11:15,29345.77538017773
2026-08-11 11:15,29845.77538017773