4d5ddc5f185866ed436db9990b8302a187494d50
Execution model upgrade: - Orders now placed AT best bid/ask (not mid ± arbitrary spread) - Avellaneda-Stoikov: dual-sided simultaneous quoting at bid AND ask - Post-only fallback: when spread is too tight, falls back to IOC limit to capture the fill instead of rejecting Backtest runner updated for all 7 strategies: Iceberg: +16.92%, Sharpe 7.85 Mean Reversion: +16.97%, Sharpe 10.43 Avellaneda-Stoikov: +15.54%, Sharpe 11.37 Momentum Breakout: +8.86%, Sharpe 3.42 Funding Arb: +6.01%, Sharpe 11.12 Pairs Trading: +0.33% OFI: -13.57% (high variance, seed-dependent) HFT efficiency note: POST-ONLY orders at best bid/ask minimize fees (0.02% maker) and capture spread. Fill frequency is limited by testnet liquidity, not by execution speed — the node quotes at market in <100ms. On mainnet with real volume, fill rates would be 100-1000x higher.
FTDT Quant Lab — Quantitative Trading Strategies
A collection of quantitative trading strategies running on Hyperliquid Testnet via Nautilus Trader. Built as part of my professional portfolio to demonstrate algorithmic trading, market microstructure, and risk management skills.
What's inside
Five strategies, from simple to advanced:
| # | Strategy | Concept |
|---|---|---|
| 1 | Order Book Imbalance | Trades on L2 bid/ask pressure |
| 2 | Iceberg / TWAP Detection | Follows whale accumulation patterns |
| 3 | Funding Rate Arbitrage | Delta-neutral carry trade |
| 4 | Pairs Trading (BTC/ETH) | Cointegration-based stat arb |
| 5 | Avellaneda-Stoikov Market Making | Stochastic optimal control |
All strategies share a common risk manager and portfolio tracker.
Quick start
# Install dependencies
pip install -r requirements.txt
# Set your Hyperliquid testnet key
export HYPERLIQUID_TESTNET_PK=0x...
# Run live (testnet only)
python live/node.py
Project layout
ftdt-quant-lab/
├── config/ # Per-strategy YAML configuration
├── strategies/ # Strategy implementations
├── common/ # Risk manager, portfolio tracker, metrics
├── backtests/ # Historical backtest runners
├── live/ # Live trading node (Hyperliquid Testnet)
├── docs/ # Documentation and strategy writeups
└── notebooks/ # Analysis notebooks
Strategy details
See docs/STRATEGIES.md for a walkthrough of each strategy.
Risk warning
This is testnet only. These strategies are educational — they are not financial advice and have no alpha guarantee. Never run them on mainnet without thorough backtesting and your own due diligence.
Built by Ramses Echikh · Part of my quant trading portfolio
Description
Quantitative trading lab — Nautilus Trader strategies on Hyperliquid Testnet. Part of my professional portfolio.
Languages
Python
51%
HTML
30.8%
TypeScript
17.2%
CSS
0.6%
JavaScript
0.4%