开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: reqPositionsMulti does not work as intended
Portfolio models and related to that model codes are for advisors to automate trading of instrument combinations. If you have not done so, take a look at Model Portfolios and the API (
By Jürgen Reinold · #49756 ·
Re: reqPositionsMulti does not work as intended
Fair enough if that was the case but then what is modelCode good for? I don't seem to be able to make use of it. Orders can be supplied with a model code and that modelCode can be entered into
By Dojo321 · #49755 ·
Re: reqPositionsMulti does not work as intended
Dojo321 wrote: ".. net position in TWS would be 0 but when I request positions I want to see two positions, .. " This is not possible with an IB account. Your IB account is a netting account, meaning
By J G · #49754 ·
Re: Suggestions on how to deal with blocking pop up from TWS (like last week)
Great question. I didn't get a popup at all. But all orders stopped. And I had to a web interface to actually see to popup and agree. More interesting question is: how one could learn in advance
By ajn · #49753 ·
Re: About commissionReport.realizedPNL
Hi,Bart, Thanks for your help. It's a way to calculate realized PnL by adding dailyPnL. Do you use this method by calculating yourself? -- ------ Forex trader David Liao
By david03kimo@... · #49752 ·
Re: How to automatically accept (or disable) the paper trading notification?
I don't know enough about dockers, so I'll try Despair's suggestion for now. Thanks for your help anyway!
By Bryce Turner · #49751 ·
Re: How to automatically accept (or disable) the paper trading notification?
Great, thank you very much for your help, Despair!
By Bryce Turner · #49750 ·
Re: Best method for getting level 2 market depth snapshots on a large number of equities
Thanks for the response Jurgen, really appreciate it. Everything you said about the cancellation requests makes sense to me. How long does it take to grab a snapshot for 30 instruments? > On
By Colin Bowers · #49749 ·
Re: About commissionReport.realizedPNL
The various options for PNL feeds are described in Profit And Loss (P&L) ( https://interactivebrokers.github.io/tws-api/pnl.html ) Jürgen
By Jürgen Reinold · #49748 ·
Re: Best method for getting level 2 market depth snapshots on a large number of equities
I would have used the same approach and cannot see a way to do it differently. How long does it take to grab a snapshot for 30 instruments? When you are done with a snapshot it will take a while for
By Jürgen Reinold · #49747 ·
Re: About commissionReport.realizedPNL
Thanks,I think your quick example is exact what I want. I'd like to know what callback function do you use to get realizedPNL without?commission reports? -- ------ Forex trader David Liao
By david03kimo@... · #49746 ·
Re: No historical market data for AAL/STK@VALUE Last 1d
When you say "I'm retrieving the contract object fresh" are you talking about reqContractDetails? If so, how many contracts does the request return? When I ask for AAL:STOCK (no other fields
By Jürgen Reinold · #49745 ·
Best method for getting level 2 market depth snapshots on a large number of equities
Hi all. As most probably know, even if paying for extra streams, there is a hard limit of around 10 market depth streams that can be open at any one time. If I wanted to see a snapshot of level 2
By Colin Bowers · #49744 ·
No historical market data for AAL/STK@VALUE Last 1d
Hi Everyone, I'm receiving this error callback when making an historical data request for AAL: "No historical market data for AAL/STK@VALUE Last 1d"? (error code 162) I can't work out what's going
By David Walker · #49743 ·
Re: reqPositionsMulti does not work as intended
To add, my goal is to tag orders with different modelCodes in order to keep positions apart. For example. If I buy 100 shares of Apple with modelCode "Strategy1" and short 100 shares of Apple with
By Dojo321 · #49742 ·
reqPositionsMulti does not work as intended
I am having trouble with the C# API requesting positions via reqPositionsMulti with a modelCode. When I query with an empty string I get all open positions, however, when I populate modelCode with a
By Dojo321 · #49741 ·
Re: opt out from: Secure Login required for trading
Thanks. Sounds like IB is moving towards 2fa. Guess it is time to bite the bullet. I was just I was hoping IB would do something more algo trading friendly, but of course any solution has
By ajn · #49740 ·
Re: Duplicate Order ID
Hello Folks, thanks a lot for your help again. I don't want to use more of your time. I have a workaround that works for me with creating a contract object. Its time for me now to figure out how i
By Metrodus79 · #49739 ·
Re: Duplicate Order ID
You should not have to create all that code in order to use a contract object you received from reqContractDetails. And you should be able to use the entire object without having to copy individual
By Jürgen Reinold · #49738 ·
Re: Duplicate Order ID
I think the best for you is to get the excel file which comes with the IB API and do some tests in their code. What you have now developed I can not check if it is valid or it will work. I started
By joanmarcel119 · #49737 ·