binance: more explicit var naming in `OHLC` parse loop

basic_buy_bot
Tyler Goodlet 2023-06-20 14:01:31 -04:00
parent a4d16ec6ab
commit 65f2549d90
1 changed files with 3 additions and 3 deletions

View File

@ -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 = []