﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Duplicate order id</title>
  <id>~/topic/8815/duplicate-order-id/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-14T21:26:09Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=8815" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/41620/</id>
    <title type="text">Hi I am attaching code that reproduces the error. It is a console application that connects to TWS a...</title>
    <published>2017-11-13T12:23:45Z</published>
    <updated>2017-11-13T12:23:45Z</updated>
    <author>
      <name>Johan Kirsten</name>
      <uri>https://stocksharp.ru/users/99799/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;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'.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/41601/</id>
    <title type="text">Hi When I register an new order it does not reflect in IB TWS. In the connector log I get the follow...</title>
    <published>2017-11-10T16:12:13Z</published>
    <updated>2017-11-10T16:12:13Z</updated>
    <author>
      <name>Johan Kirsten</name>
      <uri>https://stocksharp.ru/users/99799/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;When I register an new order it does not reflect in IB TWS. In the connector log I get the following error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
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

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This only occurs when I enable storage, ie initialize storage&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>