Skip to content

incomplete list of deals #6

@bartgrefte

Description

@bartgrefte

Just started using this library and have a weird issue.

When trying to get a list of active deals/trades using

error, deals_list = api.ver1.deals.get(api_key="*", api_secret="*")

I get an incomplete list back, the output seems to be limited to 50 deals, there are 90.

Since there's no error coming back, I'm not sure where to look.

Using Python 3.10.4, running script in Visual Studio Code on W10.

edit: There are also completed deals in the output, according to https://github.com/3commas-io/3commas-official-api-docs/blob/master/deals_api.md "scope" is an option that can be set to active (to get active deals) but "TypeError: get() got an unexpected keyword argument 'scope'"

edit2:
Switched to library py3cw, there I could add
payload={ "scope": "active", "limit": 1000 }
which solves both the incomplete list as well as only showing active deals. Couldn't find these options for this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions