﻿<?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">BitMEX invalid argument clOrdID</title>
  <id>~/topic/10419/bitmex-invalid-argument-clordid/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-14T19:38:25Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=10419" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/46957/</id>
    <title type="text">The issue already fixed in our platform. </title>
    <published>2019-03-19T09:55:35Z</published>
    <updated>2019-03-19T09:55:35Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;The issue already fixed in our platform.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/46955/</id>
    <title type="text">Hi, i have encounter the same issue recently. I used python API. It has been working for me for seve...</title>
    <published>2019-03-19T08:33:03Z</published>
    <updated>2019-03-19T08:33:03Z</updated>
    <author>
      <name>kyle Qian</name>
      <uri>https://stocksharp.ru/users/104117/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Hi, i have encounter the same issue recently. I used python API. It has been working for me for several months but it starts to throw errors recently if I try to amend the order:&lt;/p&gt;
&lt;p&gt;400 Bad Request: {'error': {'message': 'Invalid orderID', 'name': 'HTTPError'}}&lt;/p&gt;
&lt;p&gt;Please look into this, thanks a lot!&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/46657/</id>
    <title type="text">I have informed dev team. Please wait for a while. </title>
    <published>2019-02-11T13:03:00Z</published>
    <updated>2019-02-11T13:03:00Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;I have informed dev team. Please wait for a while.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/46656/</id>
    <title type="text">The order was still active and not filled, please look at the log: L#19: MQS_XBTUSD@BMEX_Bitmex_-KEY...</title>
    <published>2019-02-11T12:40:13Z</published>
    <updated>2019-02-11T12:40:13Z</updated>
    <author>
      <name>vsmt</name>
      <uri>https://stocksharp.ru/users/95909/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;The order was still active and not filled, please look at the log:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;L#19: MQS_XBTUSD@BMEX_Bitmex_-KEY	10/02/2019 14:58:02	Info	Registration of new  (0x7BB32E) order for Sell with price 3603 and volume 1.
L#26: MQS_XBTUSD@BMEX_Bitmex_-KEY	10/02/2019 14:58:02	Info	Order 53343094 (0x7BB32E) accepted by the exchange.
L#41: MQS_XBTUSD@BMEX_Bitmex_-KEY	10/02/2019 14:58:46	Error	&amp;quot;Order 53343094 (0x7BB32E) was not cancelled because System.InvalidOperationException: {&lt;cite&gt;error&lt;/cite&gt;:{&lt;cite&gt;message&lt;/cite&gt;:&lt;cite&gt;Invalid argument: clOrdID&lt;/cite&gt;,&lt;cite&gt;name&lt;/cite&gt;:&lt;cite&gt;HTTPError&lt;/cite&gt;}}
at StockSharp.Bitmex.Native.HttpClient.MakeRequest(Uri url, IRestRequest request)
at StockSharp.Bitmex.Native.HttpClient.AmendOrder(String originClientOrderId, String orderId, String clientOrderId, Nullable&lt;code&gt;1 price, Nullable&lt;/code&gt;1 volume)
at StockSharp.Bitmex.BitmexMessageAdapter.ProcessOrderReplace(OrderReplaceMessage replaceMsg)
at StockSharp.Messages.MessageAdapter.SendInMessage(Message message).&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I manually stopped the strategy at 15:01 and then the order is cancelled:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;L#75: MQS_XBTUSD@BMEX_Bitmex_-KEY	10/02/2019 15:01:21	Info	Cancel order 53343094 (0x7BB32E).
L#76: MQS_XBTUSD@BMEX_Bitmex_-KEY	10/02/2019 15:01:21	Warning	Order 53343094 (0x7BB32E) has state Active. Rule cannot be stopped.
L#85: MQS_XBTUSD@BMEX_Bitmex_-KEY	10/02/2019 15:01:22	Info	Order 53343094 (0x7BB32E) no longer active.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/46655/</id>
    <title type="text">Thank you for your feedback. This error mean the order already inactive. Sometimes orders fill befor...</title>
    <published>2019-02-11T12:30:32Z</published>
    <updated>2019-02-11T12:30:32Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Thank you for your feedback. This error mean the order already inactive. Sometimes orders fill before cancel.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/46647/</id>
    <title type="text">Hi, I get an invalid argument error for the BitMEX connector when the MarketQuotingStrategy tries to...</title>
    <published>2019-02-10T17:26:17Z</published>
    <updated>2019-02-10T17:26:17Z</updated>
    <author>
      <name>vsmt</name>
      <uri>https://stocksharp.ru/users/95909/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">&lt;p&gt;Hi, I get an invalid argument error for the BitMEX connector when the MarketQuotingStrategy tries to requote:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Error	&amp;quot;Order 53343094 (0x7BB32E) was not cancelled because System.InvalidOperationException: {&amp;quot;&amp;quot;error&amp;quot;&amp;quot;:{&amp;quot;&amp;quot;message&amp;quot;&amp;quot;:&amp;quot;&amp;quot;Invalid argument: clOrdID&amp;quot;&amp;quot;,&amp;quot;&amp;quot;name&amp;quot;&amp;quot;:&amp;quot;&amp;quot;HTTPError&amp;quot;&amp;quot;}}

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I've attached the log to this post. StockSharp.Bitmex.dll version 4.4.15.0. Code snippet used to initiate the MarketQuotingStrategy:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
ChildStrategies.ToList().ForEach(s =&amp;gt; s.Stop());
var strategy = new MarketQuotingStrategy(Sides.Sell, Volume + Math.Abs(Position))
{
    WaitAllTrades = true,
};
strategy.WhenNewMyTrade().Do(OnNewOrderTrade).Apply(this);
ChildStrategies.Add(strategy);

&lt;/code&gt;&lt;/pre&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>