Skip to content

support updating > 100 products #26

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

Merged
merged 2 commits into from
Jul 24, 2022
Merged

support updating > 100 products #26

merged 2 commits into from
Jul 24, 2022

Conversation

cctdaniel
Copy link
Contributor

with the recent addition of 30 equities in devnet/testnet, our total number of products are more than 100 and the sdk threw an error when trying to update more than > 100 products due to the limitations of solana's getMultipleAccounts rpc api (more info here: https://docs.solana.com/developing/clients/jsonrpc-api#getmultipleaccounts)

solution:
split the products to groups of 100 and run update_products with grouped_products each time

@cctdaniel cctdaniel requested review from jayantk and ali-behjati July 24, 2022 06:50
@cctdaniel cctdaniel self-assigned this Jul 24, 2022
@cctdaniel cctdaniel merged commit 18dc31b into main Jul 24, 2022
@cctdaniel cctdaniel deleted the multiple-solana-accounts branch July 24, 2022 13:57
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.

2 participants