SmartQuant Discussion

IB exception on order
Page 1 of 1

Author:  abasqd [ Tue Dec 11, 2018 3:51 am ]
Post subject:  IB exception on order

While trading live with IB I get this error.

DateTime: 12/10/2018 22:27:00.408
Provider: 4
Id: -1
Code: -1
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at SmartQuant.IB.IBTWS.ProcessNew(Int32 orderId)
at SmartQuant.IB.IBTWS.OnMessage(MsgOrderStatus message)
at SmartQuant.IB.Socket.ProcessIncomingMessages()

How this exception occurred:
On arrival of a bar with this time [12/10/2018 22:26:00.000 - 12/10/2018 22:27:00.000], my strategy was triggered to send an order to sell AUDUSD at market. The order executed with IB with no problems, however the order was not added to the strategy portfolio view. The strategy then stopped running.

Author:  abasqd [ Wed Dec 12, 2018 4:03 am ]
Post subject:  Re: IB exception on order

This happens to me everyday. What can I do about it?

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group