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

Fix missing next_cursor in add_query_*_params() #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

doubleukay
Copy link

Overview

When get_active_orders() and get_trades() are used without supplying params, pagination goes into infinite loop. This is because the code to set next_cursor is indented inside the check for params presence.

Description

Unindent the code that sets next_cursor.

Testing instructions

In order to reproduce the broken behavior, an account that has > 500 items returned by API is required.

Types of changes

  • Refactor/enhancement
  • Bug fix/behavior correction
  • New feature
  • Breaking change
  • Other, additional

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

Successfully merging this pull request may close these issues.

1 participant