I'm trying to take a snapshot of 10,000 different stock quotes using my brokerage's RTD API, *but* they limit me to 500 concurrent requests at any one time. If I exceed that, then I get booted / the API connection gets blocked.
So my inelegant-but-probably-simple-solution (that I need help executing) is to:
And repeat this process until I have requested and essentially taken a snapshot of all 10,000 price quotes. Doing 500 at a time (for 10K total), this process will essentially have to repeat ~20 times. At around 10 seconds each, it should take around 3-4 minutes to get through.
TLDR: I want a process to "cycle" through batches of cells, copying a formula to that batch, waiting for the results to populate and then copy-pasting-as-values to adjacent cells, then clearing that batch and copying it to the NEXT batch of cells.
I made the attached picture showing my cell setup.
***It should be obvious, but to keep it simple, the attached image shows a hypothetical "batch size" of just 10 (instead of the actual desired size of 500).
So my inelegant-but-probably-simple-solution (that I need help executing) is to:
1) Request 500 quotes;
2) Wait for those values to populate (about 8 seconds)
3) Copy / paste-as-values to an adjacent column
4) Then clear the 500 stock-requesting formulas, and paste them to 500 cells below the most recently requested ones in order to pull the next 'batch' of 500.
And repeat this process until I have requested and essentially taken a snapshot of all 10,000 price quotes. Doing 500 at a time (for 10K total), this process will essentially have to repeat ~20 times. At around 10 seconds each, it should take around 3-4 minutes to get through.
TLDR: I want a process to "cycle" through batches of cells, copying a formula to that batch, waiting for the results to populate and then copy-pasting-as-values to adjacent cells, then clearing that batch and copying it to the NEXT batch of cells.
I made the attached picture showing my cell setup.
***It should be obvious, but to keep it simple, the attached image shows a hypothetical "batch size" of just 10 (instead of the actual desired size of 500).