Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 08:46:22 +0000



BitMEX

View Count: 494

[2020-06-11 22:23:01]
User558609 - Posts: 3
Hi,

I am having some troubles implementing an ACSIL system in SC using the BitMEX exchange. Due to the exchange limitations, sometimes they return an "Exchange Overload error, please try again later". I handle this correctly resending the order until it gets accepted, but sometimes when I send too many orders, I get another type of error, "rate limit exceeded, please try again in 1 sec". This second error I haven't found a way of handling it and after putting a few orders more my IP gets banned and all services disconnected..

Is there any way I can read this error messages from the Trade Service log to act accordingly (stopping orders for 1 sec in the second case) or any other way to solve this?

Thanks.
[2020-06-12 09:34:20]
Sierra Chart Engineering - Posts: 104368
You can access that text through this member structure variable:
Automated Trading From an Advanced Custom Study: [Type: SCString] LastOrderActionSource

When the study function is called you will want to get the order data and examine that text:
Automated Trading From an Advanced Custom Study: sc.GetOrderByOrderID
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2020-06-12 09:35:06

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account