examples: add public get_tickers

This commit is contained in:
Jacob Plaster
2018-12-05 15:44:11 +00:00
parent cecf9edcce
commit d4c2942f22

View File

@@ -33,11 +33,17 @@ async def log_ticker():
print ("Ticker:") print ("Ticker:")
print (ticker) print (ticker)
async def log_mul_tickers():
tickers = await bfx.rest.get_public_tickers(['tBTCUSD', 'tETHBTC'])
print ("Tickers:")
print (tickers)
async def run(): async def run():
await log_historical_candles() await log_historical_candles()
await log_historical_trades() await log_historical_trades()
await log_books() await log_books()
await log_ticker() await log_ticker()
await log_mul_tickers()
t = asyncio.ensure_future(run()) t = asyncio.ensure_future(run())
asyncio.get_event_loop().run_until_complete(t) asyncio.get_event_loop().run_until_complete(t)