Duplicate order id
Atom
11/10/2017


Hi

When I register an new order it does not reflect in IB TWS. In the connector log I get the following error:

Code

2017/11/10 15:07:32.572| |InteractiveBrokersTrader|RegisterOrder: 0/ SPXW 171215C02580000@CBOE DU775642 Buy Price=26.8 Volume=1.00 State=None Bal=0
2017/11/10 15:07:32.572| |InteractiveBrokersTrader|New order: 54387931/ SPXW 171215C02580000@CBOE DU775642 Buy Price=26.8 Volume=1.00 State=Pending Bal=1.00
2017/11/10 15:07:33.750|Debug |IBSocket |Msg: ErrorMessage
2017/11/10 15:07:33.751| |IBSocket |Duplicate order id
2017/11/10 15:07:33.753|Error |InteractiveBrokersTrader|OrderRegisterFailed
54387931/ SPXW 171215C02580000@CBOE DU775642 Buy Price=26.8 Volume=1.00 State=Failed Bal=1.00
System.InvalidOperationException: Duplicate order id


This only occurs when I enable storage, ie initialize storage

Regards

Tags:


Thanks:


Johan Kirsten

Avatar
Date: 11/13/2017
Reply


Hi

I am attaching code that reproduces the error. It is a console application that connects to TWS and then enters an order. When I run it, it gives the error 'Duplicate order id'.

Regards
CreateStorage.zip 540 KB (281)
Thanks: Mikhail Sukhov Support


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy