mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
python: fix query kline example
This commit is contained in:
parent
975c8385d8
commit
768e4a0bac
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user