Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 07:18:10 +0000



Post From: BitMEX testnet connection - unactual orders in SierraChart

[2019-02-08 23:19:36]
User517260 - Posts: 97
Dear Support,
I wrote bot to work with BitMEX. I ran bot on BitMEX testnet. As you may see on first 20 seconds of video https://youtu.be/OuXsgiCP1Bk - Buy Stop order #258 in SierraChart list of orders is active and open. Bot is trying to modify it. But as you may see after 21st second of video on BitMEX order #258 was executed and is not active and return errors after bot is trying to modify this order. I use following code to get fresh data about orders:

//----------------------------------
s_SCTradeOrder OrderDetails;
sc.GetOrderByOrderID(OrderID, OrderDetails);
s_OrderInfo OrderInfo;
  
OrderInfo.OrderStatusCode     = OrderDetails.OrderStatusCode;
OrderInfo.Price1       = OrderDetails.Price1;
OrderInfo.AvgFillPrice       = OrderDetails.AvgFillPrice;
OrderInfo.OrderQuantity      = OrderDetails.OrderQuantity;
//----------------------------------

So, why does bot get wrong info about order #258?
As you may see on next video https://youtu.be/d1mJxd6nz5c next Sell Limit order #259 aslo is shown in SierraChart as active and open but in reality on BitMEX testnet it is closed.

It is a big problem because my customer trades by this bot and loses money on real account because of this problem. Please help me asap!

Waiting for your reply, Alex.
Date Time Of Last Edit: 2019-02-08 23:43:09