¿ªÔÆÌåÓý

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

reqHeadTimeStamp Duplicate Query Error


 

My script requests the head timestamp of 200 contracts to query data.? I have been having a few issues:

  1. I will be able to pull 100 ish values then I get a 162 error saying "request has timed out".? Even if I cancel the request and resubmit, I still get this error.??
  2. I occasionally get a "duplicate query" error.? Even when I run the below code, which cancels the reqid and sleeps for good measure before placing a new one, I still get this error.
self.cancelHeadTimeStamp(reqid)
time.sleep(1)
self.reqHeadTimeStamp(reqid, contract, "BID", True, 1)
Is there any clarity into what these errors exactly mean?? Am I being throttled?? Sometimes the script works perfectly, and other times it gets held up.

Mike

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