Skip to content

Trading API "buy" bug #18

@Sajam

Description

@Sajam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions