diff --git a/bfxapi/examples/rest/get_public_data.py b/bfxapi/examples/rest/get_public_data.py index a3555f0..0509a9a 100644 --- a/bfxapi/examples/rest/get_public_data.py +++ b/bfxapi/examples/rest/get_public_data.py @@ -33,11 +33,17 @@ async def log_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(): await log_historical_candles() await log_historical_trades() await log_books() await log_ticker() + await log_mul_tickers() t = asyncio.ensure_future(run()) asyncio.get_event_loop().run_until_complete(t)