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

Paging Support #41

Open
OliverRhyme opened this issue Mar 29, 2024 · 1 comment
Open

Paging Support #41

OliverRhyme opened this issue Mar 29, 2024 · 1 comment

Comments

@OliverRhyme
Copy link

Does this library supports paging? Or do we have guidelines for handling paged data?

@mirland
Copy link
Collaborator

mirland commented May 7, 2024

Hi, Stock is a flexible package, so it supports it. However, you have to send the request number with each request.

To make a request, you have to send a key like await stock.fresh(key);. In your case, that key should contain the page number. For instance, if your request needs an ID, you can use a pair with the page number and the ID, like await stock.fresh(Pair(id, pageNumber));.

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