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

incomplete list of deals #6

Open
bartgrefte opened this issue Feb 25, 2023 · 0 comments
Open

incomplete list of deals #6

bartgrefte opened this issue Feb 25, 2023 · 0 comments

Comments

@bartgrefte
Copy link

bartgrefte commented Feb 25, 2023

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.

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

1 participant