开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: reqPositionsMulti does not work as intended
Jürgen, Thanks I am aware of it and handle order submissions and fills/executions correctly. I will just allocate the fills to pertaining positions on my end. Thanks for explaining, it makes it very
By Dojo321 · #49760 ·
Re: reqPositionsMulti does not work as intended
The Order Class ( https://interactivebrokers.github.io/tws-api/classIBApi_1_1Order.html ) has a field called OrderRef (
By Jürgen Reinold · #49759 ·
Re: reqPositionsMulti does not work as intended
So, this pertains to specific model portfolios that were set up in advisor accounts in seems? How do you then keep positions apart for specific strategies? Does this all have to be handled on the
By Dojo321 · #49758 ·
Re: reqPositionsMulti does not work as intended
Thanks, will take a look
By Dojo321 · #49757 ·
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 ·