Files
stonks-oracle/lakehouse/views/README.md
T

24 lines
853 B
Markdown

# Lakehouse Views
Example SQL views for Trino over MinIO-backed analytical fact tables.
These views are designed to be created in the `lakehouse.stonks` schema and
can be used directly in Superset dashboards or ad hoc Trino queries.
## Views
- `prediction_accuracy` — Joins predicted signals with realized market moves to score prediction quality
- `paper_trade_scorecard` — Aggregates paper trading performance by symbol with win rates and PnL
- `paper_trade_detail` — Per-order paper trade detail with fill prices and realized outcomes
- `signal_hit_rate` — Daily signal accuracy summary across all symbols
## Usage
Connect to Trino and run each `.sql` file to create the view:
```bash
trino --catalog lakehouse --schema stonks < lakehouse/views/prediction_accuracy.sql
```
Or paste into the Superset SQL Lab to explore interactively.