- executor.py: utcnow() → now(utc) + ensure entry_dt is aware
(предотвращает TypeError при aware created_at)
- test_executor.py: все тесты переписаны — вызывают реальные
_check_signal, _check_position, run_cycle с мокнутой моделью/биржей
Раньше тесты проверяли арифметику в изоляции (assert 0 < 3)
- 21 интеграционный тест включая regression на cooldown 1h
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Старые тесты тестировали формулу days*24//tf_hours, повторяя баг.
Новые тесты используют hours-based логику (как prod) и проверяют:
- 4h после стопа на 1h TF = 4 candles >= cooldown 3 (regression)
- legacy date string "2026-03-13" парсится без ошибок
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Новый FuturesExecutor (ccxt bybit linear): open_long/short, close_position,
place_safety_stop с side, ensure_leverage (cached)
- Config: market_type, retrain_enabled, is_futures(), commission_for()
- Executor: routing spot/futures, SHORT разрешён для futures,
time_exit в барах (не днях), commission по типу рынка
- Notify: USDT balance, skip futures в coin positions, dynamic timeframe
- Config.yaml: UNI+ATOM+SUI futures 1h, mode=paper
- 26 новых тестов (всего 97)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>