From 65f2549d9001b8def257d17b1d96d9d1d6632759 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 20 Jun 2023 14:01:31 -0400 Subject: [PATCH] binance: more explicit var naming in `OHLC` parse loop --- piker/brokers/binance/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/brokers/binance/api.py b/piker/brokers/binance/api.py index dc4d256c..e6a4cbc9 100644 --- a/piker/brokers/binance/api.py +++ b/piker/brokers/binance/api.py @@ -113,7 +113,7 @@ class OHLC(Struct): https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-streams ''' - time: int + time: int # epoch in ms open: float high: float @@ -565,9 +565,9 @@ class Client: allow_testnet=False, ) new_bars: list[tuple] = [] - for i, bar in enumerate(bars): + for i, bar_list in enumerate(bars): - bar = OHLC(*bar) + bar = OHLC(*bar_list) bar.typecast() row = []