开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Re: Accounting for 2024, always 10% off
Perhaps this is due to an automated 10% withholding tax that IB automatically deducts (for example, if you are not a US citizen)
By Yair Altman · #54017 ·
Accounting for 2024, always 10% off
For my tax declaration I always run a flex-query to get a file over all transactions of the year. The report gives me among many other things a column called CapitalGainsPnl. This should be how much I
By Despair · #54016 ·
Re: ERROR -1 2104 Market data farm connection is OK:usfarm.nj
HMDS data farm connection is inactive but should be available upon demand.ushmds
By hellemory612@... · #54015 ·
Re: Building a real time feed: reqMktData vs reqHistoricalData vs reqRealTimeBars (with keepUpToDate=True)
I don't completely follow your suggestions, but you may misunderstand the TWS API capabilities. You are correct in that one TWS/IBGW supports connections from up to 32 client applications
By Jürgen Reinold · #54014 ·
Re: Building a real time feed: reqMktData vs reqHistoricalData vs reqRealTimeBars (with keepUpToDate=True)
Also interested. By the way, I like the case that on one single machine, I can monitor real-time streaming for multiple symbols ( for example, 10 symbols) at the same time. (a) I understand that one
By hellemory612@... · #54013 ·
Re: Why SPX options strike 5635 missing from options chain for 2025-03-14?
Thank you Daniel. I need to change my code to cater for this.
By Lewis_Tang · #54012 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
Yeah, that is true. In fact I tried to manually just disconnect internet only, and upon reconnection the session was re-established fully without the re-login step, so it's not deterministically true
By Renato Votto · #54011 ·
Re: duplicated order id
thanks Jurgen, I think, as usual :), you got the point in your second bullet. After calling the nextOrderId function I have two assignments in the strategy code and after a third instruction where
By Marco · #54010 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
I had a similar issue with IBC+IBGW+my trading app running in a Docker container. I used a cron job to shutdown the container after market close each day and then restart it before market open.
By Bart D · #54009 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
I would be a little careful with tests over the weekend, especially Saturdays. That is when IBKR does the "oil changes" on their servers and specifically logins and restarts may not work as expected.
By Jürgen Reinold · #54008 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
Ok, here's a (hopefully) good development: I just casually let a container displaying on the X server run on my local machine, went away, the machine went in standby and: Excatly the same log
By Renato Votto · #54007 ·
Re: duplicated order id
The precise TWS API requirement is that order IDs for new orders shall be "greater than all previous order IDs returned to the client application in openOrder or orderStatus callbacks". Your
By Jürgen Reinold · #54006 ·
duplicated order id
Hi All, I have an issue with orderId assignment. I have a python code where the client is a class and assign orderId to different strategies running in parallel (each strategy implemented in a
By Marco · #54005 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
Hard to say what is going on, Renato. While IBGW does not implement fancy forms and complex media content (compared to TWS), it still needs a complete and pretty sophisticated graphics subsystem for
By Jürgen Reinold · #54004 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
Thank you Jürgen, This is weird though: that only time I tried to login from the phone in paper account to test whether the Linux instance was still logged in after the restart, I always refused to
By Renato Votto · #54003 ·
Re: IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
You can have only one session at a time for each user/password combination. When there are simultaneous logins from IBGW on Linux and your phone, only one of the two can own the session and the other
By Jürgen Reinold · #54002 ·
IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."
Hi, My first post here and I hope I'm posting in the right way and place. Context: - I have a Docker container running an instance of the Interactive Brokers Gateway, paper trading account, on a
By Renato Votto · #54001 ·
Re: Simplest Way to know if Individual Candle Data is Pre-market, Market or After-hours.
Thanks for the good reply. I had ended up writing a function to calculate the start of pre-market, start of market and start of after-hours and would then compare each candle's time to see which
By dubiousposition@... · #54000 ·
Re: Why SPX options strike 5635 missing from options chain for 2025-03-14?
It’s normal. Sometimes the exchanges don’t publish all “expected” strikes. Also happens for stocks. With IBKR’s reqSecDefOptParams you can retrieve valid
By Daniel Ferreira · #53999 ·
Why SPX options strike 5635 missing from options chain for 2025-03-14?
My algo tried to define options contract for strike price 5635 with expiry on 2025-04-14 (0DTE), but got error message saying "Unknown contract". I then found that this particular strike (5635) was
By Lewis_Tang · #53998 ·