python: fix query kline example

This commit is contained in:
なるみ 2022-04-20 16:10:15 +08:00
parent 975c8385d8
commit 768e4a0bac

View File

@ -9,13 +9,16 @@ from bbgo import MarketService
def main(host, port):
service = MarketService(host, port)
klines, error = service.query_klines(exchange='binance', symbol='BTCUSDT', interval='1m', limit=10)
klines = service.query_klines(
exchange='binance',
symbol='BTCUSDT',
interval='1m',
limit=10,
)
for kline in klines:
print(kline)
print(error)
if __name__ == '__main__':
main()