Problem
I built Quantrade to compare machine-learning trading ideas under consistent evaluation rules. Prediction accuracy or an attractive equity chart alone does not answer whether a model survives fees, drawdown or a properly ordered train/test split.
Constraints
Binance, Alpaca and Hyperliquid expose different market data and fee models. Repeated experiments need comparable inputs and results, while future-data leakage and selection among many runs can make a strategy appear better than it is. Live feature generation should not rebuild an entire history on every tick.
Solution
A Python research library connects provider data, feature preparation, PyTorch training and fee-aware simulations. YAML benchmark plans run through a multiprocessing runner and produce comparable tables and charts. Incremental feature windows and Decimal-based account models provide a reference event-driven strategy interface.
My Role
This is my personal project. I built regression and classification training, backtesting, benchmark plans, a linear-model baseline and simulations of compounded equity, Sharpe, drawdown and liquidation. I integrated three market-data providers with caching and fees, and built streaming tick windows, log-return features and order/position/account models.
Technologies
Python, PyTorch, polars, pandas, scikit-learn, Altair, Binance/Alpaca/Hyperliquid APIs.
Engineering Challenges
- Evaluation before model complexity: I kept train/test data time ordered, used reproducibility settings and compared neural models with a linear baseline. Determinism helps comparisons but does not eliminate leakage or overfitting from repeated model selection.
- Gross performance is not net performance: Maker and taker fees stay distinct, with drawdown and liquidation reported beside returns rather than hidden behind accuracy.
- Reuse without false equivalence: Provider retrieval shares code, but market behaviour is not treated as interchangeable; incremental features avoid recomputing a full window for each event.
Outcome
Quantrade produces repeatable experiment tables and charts for deciding what merits further investigation. These are research results, not evidence of a profitable live strategy; no return claim is made.