b59dcc3629
Set up the directory structure and wrote placeholder logic for: - Order Book Imbalance: trades on L2 bid/ask skew - Iceberg/TWAP detection: follows whale accumulation patterns - Funding rate arbitrage: delta-neutral carry on perp funding - Pairs trading: BTC/ETH spread mean reversion - Avellaneda-Stoikov market making: optimal bid/ask quoting Also added shared risk manager, portfolio tracker, and a plain-language strategy walkthrough in docs/.
36 lines
908 B
Python
36 lines
908 B
Python
"""
|
|
Live trading node for Hyperliquid Testnet.
|
|
|
|
Runs all five strategies concurrently with shared risk management.
|
|
"""
|
|
import asyncio
|
|
import os
|
|
import sys
|
|
|
|
|
|
async def main():
|
|
private_key = os.getenv("HYPERLIQUID_TESTNET_PK")
|
|
if not private_key:
|
|
print("Set HYPERLIQUID_TESTNET_PK environment variable")
|
|
sys.exit(1)
|
|
|
|
print("=" * 55)
|
|
print(" FTDT Quant Lab - Live Trading Node")
|
|
print(" Hyperliquid Testnet")
|
|
print("=" * 55)
|
|
print()
|
|
print("Strategies:")
|
|
print(" 1. Order Book Imbalance (OFI)")
|
|
print(" 2. Iceberg / TWAP Detection")
|
|
print(" 3. Funding Rate Arbitrage")
|
|
print(" 4. Pairs Trading (BTC/ETH)")
|
|
print(" 5. Avellaneda-Stoikov Market Making")
|
|
print()
|
|
print("Connecting to Hyperliquid Testnet...")
|
|
# TODO: Full Nautilus TradingNode integration
|
|
print("Ready.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(main())
|