Closes #020 - Ticker Data Real-Time Alignment & ML Handbook Integration

This commit is contained in:
Antigravity Agent
2026-06-14 13:25:42 +02:00
parent 9c5cd78801
commit 118c626fe0
6 changed files with 299 additions and 44 deletions

View File

@@ -228,5 +228,22 @@ This document tracks all modifications, npm packages, active compilation states,
* **Active Bugs**: None.
* **Type Checker Status**: Verified 100% clean type verification (`npx tsc --noEmit` returns exit code 0).
---
## [2026-06-14] - Ticker Data Real-Time Alignment & ML Handbook Integration (#ISSUE-020)
### Added
* **Real-Time Price & Indicator Sync**: Updated the GET handler in `app/api/finance/route.ts` to query live Binance futures funding rates in parallel for all crypto assets (`BTC-USD`, `ETH-USD`, `SOL-USD`) and extract tail rows of `backend/data/BTC-USD.csv` for the primary `BTC-USD` price source. Exposes complete indicators (`fundingRate`, `openInterestChange`, `longShortRatio`, etc.) in the JSON payload.
* **Reactive UI Price Cards**: Refactored `CryptoDemo.tsx` to hook all cards to a reactive `coins` state, executing a 15-second background update cycle fetching live prices, 24h percentage deltas, and indicators.
* **Dynamic Liquidation Sizing**: Configured dynamic scaling of liquidation limits (`liqLong`, `liqShort`) relative to real-time prices to ensure consistent risk boundaries in the UI.
* **Ensemble Estimator Specifications**: Injected a new "G. Ensemble Estimator Specifications" section into `CryptoMathModal.tsx` documenting the mathematical foundations (RF bagging, XGBoost gradient minimization, ElasticNet regularization, SVM RBF kernels, MLP hidden layers).
* **Modal Viewport Clipping Fixes**: Applied `items-start`, `overflow-y-auto` and `my-auto max-h-full` to both `CryptoMathModal.tsx` and `CryptoBlueprintModal.tsx` to prevent clipping and enable scrolling.
* **Active Learning Feedback Loop Expansion**: Expanded the table layout and storage state in `CryptoDemo.tsx` to snapshot the full 15-probability matrix layout. Displayed three separate columns for T+1, T+5, and T+10 consensus forecasts with individual model probability paths.
### Active Bugs / Compile Status
* **Active Bugs**: None.
* **Type Checker Status**: Verified 100% clean type verification (`npx tsc --noEmit` returns exit code 0).