开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date
Re: ibapi nextValidId not always invoked
Hi Alex, I had a similar problem with a connect being done on the heals of a disconnect. I determined that the EClient disconnect code failed to wait for the reader thread to come home. It was
By @ScottBrian · #47222 ·
OCA Order Examples
Hey everyone, I'm in the process of setting up the IB Api in Python and I am pulling my hair out trying to get a One Cancels All order setup correctly (i.e. without errors). I was wondering if anyone
By zirndorfer2021@... · #47221 ·
Re: Is it possible to open multiple connection through TWS API?
Well then you do this. Connecting with different client IDs will allow you to stream quotes with one client and download historical data with the other for example.
By Despair · #47220 ·
Re: How Market Data Farm is ON when the API Client is not connected itself?
The TWS display of market data farm has nothing to do with the api. It is telling you that TWS itself is connected to IB's data farm server. You broke your code when you changed it so that you are
By Nick <news1000@...> · #47219 ·
Re: Is it possible to open multiple connection through TWS API?
Hello, Despair, Thanks for your message. Actually, I am not interested to store Historical Data in the database. I want to pull historical data direct from IB and calculate the required indicators.
By Tareq Naushad · #47217 ·
Re: Is it possible to open multiple connection through TWS API?
You can be connected to the API with several different client IDs simultaneously. However you don't really need the API to calculate indicators.
By Despair · #47216 ·
Is it possible to open multiple connection through TWS API?
Hello, In one of our custom web-based applications for strategy making in trading, we are running a TWS API connection to stream data (which is run all-time). Now we want to open another connection to
By Tareq Naushad · #47215 ·
ibapi nextValidId not always invoked
i built a small ibapi python app to run some strategy, while taking care to stay connected to tws. if tws is inactive, the python app will start and wait, and will connect to tws when tws will start,
By alexbodn@... · #47214 ·
Re: Contents of "SecIdList" within a contract object.
I doubt they'd have Ric or Sedol..? Those are also subscription based on the source side, which I haven't seen mentioned in IB..? I believe the SecIdList is populated with what's available
By Peter Drier · #47213 ·
Contents of "SecIdList" within a contract object.
According to the TWS API guide, we have the following definition for this sub-field of the Contract object: List< TagValue ( https://interactivebrokers.github.io/tws-api/classIBApi_1_1TagValue.html )
By Aquiles Páez <aquilesjlp300@...> · #47212 ·
Historic ETF NAV
Hello, Is there a way to get daily historic ETF NAV?, i.e. the NAV Prior Close value as shown in ETF watch list columns
By nshale2@... · #47211 ·
Can't finde "PURE" exchange on the list of validExchanges from a Contract object.
Hello. I'm trying to request contracts and other types of data for the stocks listed under PURE inside the TWS exchange listings (please see this link so you can get see the full list of securities:
By Aquiles Páez <aquilesjlp300@...> · #47210 ·
Re: Pulling reqMktData for multiple tickers
Excellent Patrick - I'm happy it's working for you now!
By @ScottBrian · #47209 ·
Re: Pulling reqMktData for multiple tickers
The code worked Scott! Once I get a little breather from the markets today, I'll sit down and dig through the code so I can mentally understand how it all went together. This is a good lesson right
By Patrick C · #47208 ·
Re: Submit orders to TWS via API
Hi Artyom Thanks for your reply... Suggestion (1) resolved the issue thanks all.. for your inputs regards ed wrote:
By Ed Bell · #47207 ·
Re: Pulling reqMktData for multiple tickers
Hi Patrick, Ooops, my bad with the tickerId - I was trying to get the first tickerId to be 1 and to also use it as the index to the tickers list, but I failed to subtract 1 from the tickerId when
By @ScottBrian · #47206 ·
Re: Pulling reqMktData for multiple tickers
So leaving the +1 in: for tickerId in range(1, len(tickers) +1 ): was giving me an IndexError: list index out of range So I removed the +1 and this is what I get. I get 3 threads running. But I'm
By Patrick C · #47205 ·
Re: Pulling reqMktData for multiple tickers
You guys are rock stars, all of you guys! I'm gunna sit down and read through everything here a second time, and also test the code snip from Scott. I really really appreciate everyone trying to help
By Patrick C · #47202 ·
Re: Pulling reqMktData for multiple tickers
Hi Ray, No ouch from me I hope. I thought your reply was very excellent and explained a lot about threading. I also think your advice to not use threading is sound for this current case of getting
By @ScottBrian · #47201 ·
Re: Submit orders to TWS via API
two cents from my side, consider these steps: 1. bringing TWS connect disconnect outside of infinite loop 2. implement filesystem watchdog observer, for example:
By Artyom T. · #47200 ·