bogdanteodoru / py3cw

Unofficial wrapper for the 3Commas API written in Python
MIT License
89 stars 40 forks source link

accounts/market_pairs returns empty list #39

Closed dongofresh closed 2 years ago

dongofresh commented 2 years ago
def market_pairs(p3cw):
    error, data = p3cw.request(
        entity='accounts',
        action='market_pairs',
        action_id=str(########)
    )
    if error == {}:
        return data
    else:
        raise(Exception(error['msg']))

market_pairs(p3cw)

This returns an empty list each time.

I tried it with several exchanges, both with "id" and "market_code." Other calls like "market_list" or "running_bots" work fine. What am I missing?

Thank you for your work! Best regards Yan

cyberjunky commented 2 years ago
    error, data = p3cw.request(
        entity="accounts",
        action="market_pairs",
        payload={"market_code": market_code},
    )