You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import ccxt.async as ccxt
import asyncio
bitfinex = ccxt.bitfinex()
poloniex = ccxt.poloniex()
for exchange in (bitfinex, poloniex):
exchange.verbose = True
async def get_book(exchange, symbol):
result = await exchange.fetch_order_book(symbol)
return result
async def get_data_directly(exchange):
result = await get_book(exchange, 'ETH/BTC')
print(result)
loop = asyncio.get_event_loop()
Running get_data_directly with either bitfinex or poloniex should print the order book. But that's not what happens.
Running it with poloniex works fine:
Consider the following mini-program:
Running get_data_directly with either
bitfinex
orpoloniex
should print the order book. But that's not what happens.Running it with
poloniex
works fine:(poloniex orderbook truncated for display purposes)
However running it with
bitfinex
results in an empty order book:[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)] on darwin
The text was updated successfully, but these errors were encountered: