Login Page - Create Account

Support Board


Date/Time: Sat, 04 Jan 2025 07:54:30 +0000



Post From: Error: "Synchronized Internal Position to current Service Position. Current Position qua..

[2016-05-02 18:26:00]
User99735 - Posts: 234
Hi,
Am getting the error "Synchronized Internal Position to current Service Position. Current Position quantity: 0" in live trading, however the same does not come in simulated trading.
Sequece of orders as follows
- Open a Buy Order at Market
- When the Buy order is filled and PositionData.PositionQuantity is non-zero, a Stop/Limit order is placed for "Buy to close"

Detailed log is as follows. Please advise.

Regards

Vivek

ActivityType  DateTime  Symbol  OrderActionSource  InternalOrderID  ServiceOrderID  OrderType  Quantity  BuySell  Price  Price2  OrderStatus  FillPrice  FilledQuantity  TradeAccount  OpenClose  ParentInternalOrderID  PositionQuantity  FillExecutionServiceID
Order  2016-04-29 06:32:08.058  AAPL-OPT-20160429-94-P-SMART-100-USD  Auto-trade canceled order: AAPL [M] 1 Min #2|Option Trader  69497  10699  Stop  1  Sell  0.41    Pending Cancel      U1644808  Close      
Order  2016-04-29 06:32:08.057  AAPL-OPT-20160429-94-P-SMART-100-USD  Auto-trade canceled order: AAPL [M] 1 Min #2|Option Trader  69498  10700  Limit  1  Sell  0.56    Pending Cancel      U1644808  Close      
Order  2016-04-29 06:32:07.519  AAPL-OPT-20160429-94-P  Synchronized Internal Position to current Service Position. Current Position quantity: 0                Unspecified      U1644808        
Order  2016-04-29 06:32:00.345  AAPL-OPT-20160429-94-P-SMART-100-USD  IB Open Order message update  69498  10700  Limit  1  Sell  0.56    Open      U1644808  Close    1  
Order  2016-04-29 06:32:00.205  AAPL-OPT-20160429-94-P-SMART-100-USD  IB Open Order message update  69497  10699  Stop  1  Sell  0.41    Open      U1644808  Close    1  
Order  2016-04-29 06:31:59.951  AAPL-OPT-20160429-94-P-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start Date-Time: 2016-04-29 06:32:00  69498    Limit  1  Sell  0.56    Order Sent      U1644808  Close    1  
Order  2016-04-29 06:31:59.950  AAPL-OPT-20160429-94-P-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start Date-Time: 2016-04-29 06:32:00  69497    Stop  1  Sell  0.41    Order Sent      U1644808  Close    1  
Fill  2016-04-29 06:31:59.514  AAPL-OPT-20160429-94-P-SMART-100-USD  IB order fill (execution)  69496  10698  Market  1  Buy      Filled  0.51  1  U1644808  Open    1  0000f157.5723439d.01.01
Order  2016-04-29 06:31:59.513  AAPL-OPT-20160429-94-P-SMART-100-USD  IB order fill (execution)  69496  10698  Market  1  Buy      Filled  0.51  1  U1644808  Open      
Order  2016-04-29 06:31:59.165  AAPL-OPT-20160429-94-P-SMART-100-USD  Auto-trade: AAPL [M] 1 Min #2 | Option Trader | sc.SubmitOrder | Bar start Date-Time: 2016-04-29 06:32:00  69496    Market  1  Buy      Order Sent      U1644808  Open      
Order  2016-04-29 06:30:23.091    Requesting Open orders from trading service                Unspecified      None