Post
Topic
Board Trading Discussion
Re: Trading Bot in C# - blog series
by
bitdude
on 14/06/2025, 07:02:29 UTC
Blog post part 6 - Reconnecting strategies

In this post we discuss how to react to exchange service disruptions. This is a very important topic that differentiates professionals from people who are just playing with the idea of automatic trading.

How will your trading bot behave if there is a network connection problem? Suddenly, you get disconnected. What do you do? What if the connection is reestablished but you get disconnected in couple of seconds again?

Whale's Secret ScriptApiLib offers a solution in form of connection strategies. You can choose the strategy that is applied when a problem occurs and the selected strategy is then applied automatically. For example, you may define that the API request operation should block and wait without limit until the connection is available again. All subscriptions are automatically renewed, so you can keep consuming updates of market data as if nothing happened.

Check out the full post for more details!