Login Page - Create Account

Support Board

Date/Time: Sat, 30 May 2020 14:20:59 +0000

Post From: Changes to Interactive Brokers Position Reporting Symbols and Symbol Matching

[2020-03-23 06:05:31]
user98234598 - Posts: 5 | Ending Date: 2020-06-21

I have an issue with IB symbols for US stock CFD's. Specifically I can't get the position quantity to show ( sc.GetTradePosition(PositionData) and then PositionData.PositionQuantityWithAllWorkingOrders always shows a quantity of zero)
I open the charts with the 3/4 letter code, e.g. CSCO and set the sc.TradeAndCurrentQuoteSymbol to CSCO-CFD-SMART-USD.
I can open and close orders with BuyOrder/SellOrder and the orders get filled. ( BuyExit/SellExit give an error that there are 0 positions)
Like this
Auto-trade: USO 1 Min #3 | Buy1Stock | BuyExit | Bar start date-time: 2020-03-02 17:00:00.000 | BuyExit signal is ignored.
      Long position quantity does not exist or there are already working exit orders that will flatten the position.
      Current Position with working exit orders: 0. Current Position: 0. Current Position with exit market orders: 0 | 2020-03-02 17:00:18.828

When I have a filled position it shows in the 'Trade Positions' window, but the symbols is CSCOn-CFD-SMART-USD. If I click flatten I get an error about the symbol not existing.
When I view daily statements from IB via the web or TWS the product is listed under a CFD heading and the symbol is CSCOn

Could you make these weird IB CFD symbol names with an 'n' match to their standard IB symbol for CFD's ?

Date Time Of Last Edit: 2020-03-23 06:08:06