binance: more explicit var naming in `OHLC` parse loop
parent
a4d16ec6ab
commit
65f2549d90
|
@ -113,7 +113,7 @@ class OHLC(Struct):
|
||||||
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-streams
|
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-streams
|
||||||
|
|
||||||
'''
|
'''
|
||||||
time: int
|
time: int # epoch in ms
|
||||||
|
|
||||||
open: float
|
open: float
|
||||||
high: float
|
high: float
|
||||||
|
@ -565,9 +565,9 @@ class Client:
|
||||||
allow_testnet=False,
|
allow_testnet=False,
|
||||||
)
|
)
|
||||||
new_bars: list[tuple] = []
|
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()
|
bar.typecast()
|
||||||
|
|
||||||
row = []
|
row = []
|
||||||
|
|
Loading…
Reference in New Issue