Hi, I get an invalid argument error for the BitMEX connector when the MarketQuotingStrategy tries to requote:
Error "Order 53343094 (0x7BB32E) was not cancelled because System.InvalidOperationException: {""error"":{""message"":""Invalid argument: clOrdID"",""name"":""HTTPError""}}
I've attached the log to this post. StockSharp.Bitmex.dll version 4.4.15.0. Code snippet used to initiate the MarketQuotingStrategy:
ChildStrategies.ToList().ForEach(s => s.Stop());
var strategy = new MarketQuotingStrategy(Sides.Sell, Volume + Math.Abs(Position))
{
WaitAllTrades = true,
};
strategy.WhenNewMyTrade().Do(OnNewOrderTrade).Apply(this);
ChildStrategies.Add(strategy);
Комментарии (5)
Вход или Создать аккаунт, Войдите или зарегистрируйтесь, чтобы оставить комментарий
Thank you for your feedback. This error mean the order already inactive. Sometimes orders fill before cancel.
The order was still active and not filled, please look at the log:
I manually stopped the strategy at 15:01 and then the order is cancelled:
I have informed dev team. Please wait for a while.
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:
400 Bad Request: {'error': {'message': 'Invalid orderID', 'name': 'HTTPError'}}
Please look into this, thanks a lot!
The issue already fixed in our platform.