summaryrefslogtreecommitdiff
path: root/services/data-collector/src/data_collector/binance_rest.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 16:24:30 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 16:24:30 +0900
commit100aa624ad3f8ad466a95f9da8af30f31f77cc9c (patch)
treeef81b9f37872ed462a1f84ea238a130f758782d2 /services/data-collector/src/data_collector/binance_rest.py
parent73eaf704584e5bf3c4499ccdd574af87304e1e5f (diff)
fix: resolve lint issues and final integration fixes
- Fix ambiguous variable name in binance_rest.py - Remove unused volumes variable in volume_profile_strategy.py - Fix import ordering in backtester main.py and test_metrics.py - Auto-format all files with ruff
Diffstat (limited to 'services/data-collector/src/data_collector/binance_rest.py')
-rw-r--r--services/data-collector/src/data_collector/binance_rest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/data-collector/src/data_collector/binance_rest.py b/services/data-collector/src/data_collector/binance_rest.py
index af0eb77..eaf4e30 100644
--- a/services/data-collector/src/data_collector/binance_rest.py
+++ b/services/data-collector/src/data_collector/binance_rest.py
@@ -1,4 +1,5 @@
"""Binance REST API helpers for fetching historical candle data."""
+
from datetime import datetime, timezone
from decimal import Decimal
@@ -35,7 +36,7 @@ async def fetch_historical_candles(
candles: list[Candle] = []
for row in rows:
- ts_ms, o, h, l, c, v = row
+ ts_ms, o, h, low, c, v = row
open_time = datetime.fromtimestamp(ts_ms / 1000, tz=timezone.utc)
candles.append(
Candle(
@@ -44,7 +45,7 @@ async def fetch_historical_candles(
open_time=open_time,
open=Decimal(str(o)),
high=Decimal(str(h)),
- low=Decimal(str(l)),
+ low=Decimal(str(low)),
close=Decimal(str(c)),
volume=Decimal(str(v)),
)