¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date
Re: eroor 322 errorMsg "Error processing request.-'bW' : cause - Duplicate ticker id"
Hi Liu, The "foreach" execute nested code block concurrently. Your code has "counter" incremented in one line and then used in another line. The "counter" variable is shared across all you (many) code
By Dmitry Shevkoplyas · #50652 ·
Re: need help with stoploss of bracket order
If I understand correctly, Daniel, the stop order is executed, just not at the price you are looking for? You might want to read IBKR's Stop Orders (
By J¨¹rgen Reinold · #50651 ·
Re: real-time level-i streaming for volume information - Am I getting all the volume
Available Tick Types ( https://interactivebrokers.github.io/tws-api/tick_types.html ) lists all tick types you can expect or request, Chris. Volume (#8) is a good overview of trade volume, but it only
By J¨¹rgen Reinold · #50650 ·
Re: eroor 322 errorMsg "Error processing request.-'bW' : cause - Duplicate ticker id"
Well, somewhere in your program an API request is made with a duplicate requestId or tickerId. The error callback should give you the exact id at fault. "reqId + counter" is a bad idea. You should
By J¨¹rgen Reinold · #50649 ·
Re: eroor 322 errorMsg "Error processing request.-'bW' : cause - Duplicate ticker id"
sorry but i am not sure what you mean, I have??int counter = 1; outside the foreach loop and I put a breakpoint at the end of foreach loop and ran it I see in the debug each request of reqmktdata
By H Liu · #50648 ·
Commodity Futures missing for Nickel/Zinc/Hogs/Propane etc.
Hello, Can't find any commodity futures on Nickel/Zinc/Hogs/Propane etc. Does IBKR not support any trading on these? Thanks, John
By John · #50647 ·
need help with stoploss of bracket order
Hello We are trying to send a bracket order via API. We are encountering a problem with the stop loss part of the order. it doesn¡¯t seem to work properly and do not execute the stop order at the
By Daniel Gitman · #50646 ·
Re: eroor 322 errorMsg "Error processing request.-'bW' : cause - Duplicate ticker id"
Hi Liu, The "counter" variable is initialized at a higher scope (not within the for-each loop). This means that multiple parallel for-each executions are working against the same instance of that
By Dmitry Shevkoplyas · #50645 ·
eroor 322 errorMsg "Error processing request.-'bW' : cause - Duplicate ticker id"
Hello I am getting an duplicate ticker id error, however I already have a unique id for each request, I have uploaded a screenshot of my snippet of code when I comment out this code it works fine, I
By H Liu · #50644 ·
MGC order(s) not accepted by IB.
Hi All, I don't remember this happening before, but MGC Comex Micro Gold just flipped from Feb to Apr. I have a BUY (1) STPLMT ENTRY with a STP loss attached. MGC 202304 Current price 1966.30 (1) BUY
By Lou Dudka · #50643 ·
IB order callback for cancelled order shows empty orderRef
Hi All, I got some strange behavior while connecting to a simulated account. I'm writing code to make my app robust to crashing intra-day. I'm wondering if what I'm seeing is what I should expect, or
By ajinkya@... · #50642 ·
reqPnlSingle shows unset Pnls for closed position
Hi, I have been using the TWS API (Python implementation) recently to create a custom trade report of my daily trades, and this has been working quite ok so far. Today however I am receiving some
By Simon Steiner · #50641 ·
Re: MOO / MOC / Time Conditional Orders
1) For API, check https://interactivebrokers.github.io/tws-api/basic_orders.html Scroll down, examples are given for MOO / LOO / MOC / LOC. For TWS, from an order entry window, the order type pull
By Kevin R Keane · #50640 ·
Re: MOO / MOC / Time Conditional Orders
Hello , as far as I know , time conditionned orders are only available for LMT orders --
By rmlandauer@... · #50639 ·
MOO / MOC / Time Conditional Orders
Hello, Few questions on timed orders please: * MOC/MOO orders ( https://ndcdyn.interactivebrokers.com/en/index.php?f=599 ) Market On Close, do not appear in TWS, no matter what underlier I select, the
By John · #50638 ·
real-time level-i streaming for volume information - Am I getting all the volume
Hi, I have set-up streaming for level-i data (multiple symbols) by using the following construct : ....? ? m_pClient->reqMktData(j, ContractSamples::USStockAtSmart_NEW(i), "", false, false,
By Chris Haidinyak · #50637 ·
Is it possible to create bracket order with hotkeys using TWS?
Hi, can we create hotkeys to send bracket orders in TWS? i found attach bracket orders in hotkeys but there is no customize tab. Thanks
By autotest890@... · #50635 ·
Re: Option stoploss order depending on underlying price
Hi, I am not sure if I could fix it. Apparently with the following code, TWS is showing right TakeProfit(TRAIL order) and StopLoss (Price Condition) order. Shall check tomorrow when market opens and
By souvik.trader@... · #50634 ·
Re: Option stoploss order depending on underlying price
Dave, That was really a great help. I did look at the price condition and seems a good fit for the purpose. I could code and test the price conditioned stop loss order. It worked like a charm. But
By souvik.trader@... · #50633 ·
Re: Option stoploss order depending on underlying price
Bart, I cant agree more since the options highly fluctuate due to greeks. However, the strategy I am building is for scalping and and am looking at keeping the position at very short time frame. Short
By souvik.trader@... · #50632 ·