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

Pagination Doesn't Work When Limit is Manually Set on V2 #486

Open
jbgrunewald opened this issue Sep 6, 2021 · 1 comment
Open

Pagination Doesn't Work When Limit is Manually Set on V2 #486

jbgrunewald opened this issue Sep 6, 2021 · 1 comment

Comments

@jbgrunewald
Copy link

The current logic for v2 results in either pulling the max number of records or the limit set by the user.

The purpose of the limit field isn't being used as intended here. For example, I expect to be able to use it to get larger result sets per request to speed up bulk data processing.

A better alternative would be a flag indicating you want to autopaginate and allowing users to control the number of responses per request.

@stucash
Copy link

stucash commented Nov 26, 2021

At least, I'd love to have a wrapper function from alpaca python to do the auto-pagination, if Alpaca team is reluctant for a REST API revamp.

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

2 participants