feat: collect Bybit orderbook observations for training

This commit is contained in:
Курнат Андрей
2026-07-15 00:36:56 +03:00
parent d0869b5d29
commit 2967cd607c
14 changed files with 374 additions and 21 deletions
+9
View File
@@ -180,3 +180,12 @@ def test_load_settings_rejects_unknown_fallback_mode(tmp_path, monkeypatch) -> N
with pytest.raises(ValueError, match="TIME_SERIES_FALLBACK_MODE"):
load_settings(env_file)
def test_load_settings_rejects_non_positive_observation_interval(tmp_path, monkeypatch) -> None:
monkeypatch.delenv("MARKET_OBSERVATION_SAMPLE_SECONDS", raising=False)
env_file = tmp_path / ".env"
env_file.write_text("MARKET_OBSERVATION_SAMPLE_SECONDS=0\n", encoding="utf-8")
with pytest.raises(ValueError, match="MARKET_OBSERVATION_SAMPLE_SECONDS"):
load_settings(env_file)