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

Trading API "buy" bug #18

Open
Sajam opened this issue Jul 18, 2017 · 1 comment
Open

Trading API "buy" bug #18

Sajam opened this issue Jul 18, 2017 · 1 comment

Comments

@Sajam
Copy link
Contributor

Sajam commented Jul 18, 2017

When I call:

sync_app_with_auth.trading.buy('BTC_XMR', 1, 1)

I got:

[...]
  File "/src/poloniex/poloniex/api/base.py", line 42, in decorator
    method, params = self.get_params(func.__name__, **kwargs)
TypeError: get_params() got multiple values for argument 'self'

The same for sell (and probably any other method).

When I call it like this:

sync_app_with_auth.trading.api_call(data={
    'command': 'buy',
    'currencyPair': 'BTC_XMR',
    'rate': 1,
    'amount': 1,
})

Everything works well (so it's probably command_operator decorator bug).

Python 3.5

@rueberger
Copy link

Workaround: use kwargs

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