¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Downloading Large Amounts of Historical Data


 

On Tue, Feb 16, 2021 at 05:38 PM, <msaracena@...> wrote:

What approach can be taken to ensure the script waits until the current request is complete before moving to the next?


Your implementation seems to revolve around using time.sleep(). That is not the best approach as you don't know how long it will take for IB to respond to your request. IB will send an indication when it has sent you all data that you requested (or that it has available). You need to wait until you receive this message from IB and then move on to your next request.

Join [email protected] to automatically receive all group messages.