Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poloniex async Type error #461

Closed
nmiculinic opened this issue Nov 4, 2017 · 2 comments
Closed

Poloniex async Type error #461

nmiculinic opened this issue Nov 4, 2017 · 2 comments
Assignees

Comments

@nmiculinic
Copy link
Contributor

  File "/usr/local/lib/python3.6/site-packages/ccxt/async/poloniex.py", line 428, in fetch_open_orders
    orders = await self.fetch_orders(symbol, params)

  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
    return self.gen.send(None)

  File "/usr/local/lib/python3.6/site-packages/ccxt/async/poloniex.py", line 372, in fetch_orders
    market = self.market(symbol)

  File "/usr/local/lib/python3.6/site-packages/ccxt/base/exchange.py", line 803, in market
    raise ExchangeError(self.id + ' does not have market symbol ' + symbol)

TypeError: must be str, not NoneType

ccxt==1.9.341

@kroitor kroitor self-assigned this Nov 4, 2017
@kroitor
Copy link
Member

kroitor commented Nov 4, 2017

Hi! Thx for reporting!

Poloniex fetchOpenOrders requires a symbol (it is also true for many other exchanges as well). So, in a generic case, we need to pass the symbol to that method. I will also add a fix for the NoneType minor bug.

Does this answer your question?

@kroitor kroitor closed this as completed in a431910 Nov 4, 2017
@kroitor
Copy link
Member

kroitor commented Nov 4, 2017

Fixed in 1.9.362+. Thx again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants