Add short signal scanner + leverage trading game engine + auto-trader

- short_scanner.py: RSI/VWAP/MACD/Bollinger-based short signal detection
- leverage_game.py: Full game engine with longs/shorts/leverage/liquidations
- leverage_trader.py: Auto-trader connecting scanners to game with TP/SL/trailing stops
- Leverage Challenge game initialized: $10K, 20x max leverage, player 'case'
- systemd timer: every 15min scan + trade
- Telegram alerts on opens/closes/liquidations
This commit is contained in:
2026-02-09 20:32:18 -06:00
parent ab7abc2ea5
commit c5b941b487
11 changed files with 4362 additions and 1 deletions

View File

@ -0,0 +1,16 @@
{
"game_id": "1ac7d29c",
"name": "Leverage Challenge",
"starting_cash": 10000.0,
"max_leverage": 20,
"funding_rate_8h": 0.01,
"maker_fee": 0.02,
"taker_fee": 0.05,
"start_date": "2026-02-09",
"creator": "case",
"created_at": "2026-02-10T02:31:27.614107+00:00",
"players": [
"case"
],
"status": "active"
}

View File

@ -0,0 +1,7 @@
{
"cash": 10000.0,
"positions": {},
"total_realized_pnl": 0,
"total_fees_paid": 0,
"total_funding_paid": 0
}