areed1192 / interactive-broker-python-api

A python packaged used to interact with the Interactive Brokers REST API.
MIT License
374 stars 122 forks source link

why would i get the error message: Only 50 simultaneous API historical data requests allowed #4

Closed lovetrading10 closed 4 years ago

lovetrading10 commented 4 years ago

Hello Everyone. I am very interesting in your github. I am trading with some stocks. By the way, I am getting this error message after some time. image How can I fix this error? I will wait for your favorable reply. Best regards!

areed1192 commented 4 years ago

Okay, so you're probably making too many requests. How many requests are you trying to do at once? Additionally how many endpoints are you using?

lovetrading10 commented 4 years ago

three stocks reqHistoricalData( contract, endDateTime='', durationStr='1 D', barSizeSetting='1 min', whatToShow='TRADES', useRTH=True, formatDate=1, keepUpToDate=True) time.sleep(60)

areed1192 commented 4 years ago

Are you using your own functions to make the request? I'd have to see the entire program to understand exactly what it's doing. For example, some of the arguments you're passing through aren't correct. So I'm surprised you're getting any data back.

lovetrading10 commented 4 years ago

ok. Thanks. trade.zip

areed1192 commented 4 years ago

Just an FYI, this repo isn't for the ib_sync library. This library is for the 'web-based-api`. The repo you want is ib_insync

lovetrading10 commented 4 years ago

But I think that the way is the same. And I know you are an expert in this field. Can you help me?

areed1192 commented 4 years ago

I have never used that library, so I don't know you need to ask the question on that repo, please. I'll be closing this comment now.