← Zurück

Duplicate order id

Hi

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


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

Kommentare (1)

Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen

Johan Kirsten
Johan Kirsten Autor

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

Mikhail Sukhov Support