Bitcoin Forum
December 29, 2025, 05:08:03 PM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trading Bot in C# - blog series  (Read 199 times)
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
March 18, 2025, 12:15:22 PM
 #1

We have started a series of blog posts in which we will demonstrate how to write trading bots in C#. This is step-by-step tutorial for everyone who knows C# and knows some basics of trading.

In the first part of the series we connect to Binance exchange and we start downloading market data and calculate a simple RSI indicator from the received data.

We will follow up with connecting the bot to Telegram, creating orders, making more complex logic, measuring performance, etc.

All the samples use the Whale's Secret ScriptApiLib in the free mode, so you can reproduce everything completely for free.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
May 19, 2025, 12:45:21 PM
 #2

In the second part of our series about algorithmic trading in C#, we connect the trading bot to Telegram chat room, so that we can be alerted about interesting developments on the market.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
May 26, 2025, 05:26:36 PM
 #3

In the 3rd part of our series, we explain the concept of orders in general, we talk about differences between limit and market orders, and we show samples how to place these orders on the Binance exchange.

Nice feature of our Whale's Secret ScriptApiLib library is that in order to make the samples work on KuCoin exchange, all that is needed is to change a single constant in the code. That's the whole point of our library - to have the same code for all exchanges.

Let us know what you think. There is much more to come, we barely scratched the surface so far, but explaining the basics is important for those who are just starting with trading automation.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
SmartGold01
Legendary
*
Offline Offline

Activity: 1288
Merit: 1118



View Profile WWW
May 27, 2025, 02:49:40 AM
 #4

Trading with bot is good but there should be some sets of limitation and restriction as most times Bot do malfunction and imagine someone have an open trading and the market is already against you, and your bots also malfunction what would you do next to restore back you money? Definitely you can't alter any words or evening of how to restore them.

Initially what I love is having self experience and what you have learnt before implementing them, even though you must use bot but let it be that you already had enough without haven't to relying on the bot to keep performing and executing trade for someone, I know there are people who may love it but, sincerely the rate at which people do lose their money is a results of inappropriate/lack of research on trading.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
May 30, 2025, 05:15:13 PM
 #5

Trading with bot is good but there should be some sets of limitation and restriction as most times Bot do malfunction and imagine someone have an open trading and the market is already against you, and your bots also malfunction what would you do next to restore back you money? Definitely you can't alter any words or evening of how to restore them.

Initially what I love is having self experience and what you have learnt before implementing them, even though you must use bot but let it be that you already had enough without haven't to relying on the bot to keep performing and executing trade for someone, I know there are people who may love it but, sincerely the rate at which people do lose their money is a results of inappropriate/lack of research on trading.

The risk management is certainly very important and we will talk about that in our series as well. We actually have direct support for this in our library. We call it trading strategy budget. When you connect to the exchange with our library, you can define budget that is applied to all orders on that connection. And the library will prevent you to place such an order that exceeds the budget. So if you have a serious balance on your account but only want to test your strategy with a small amount, you can. And if there is a bug in your code, it's fine, the budget feature will protect you.

In the ready-to-go bots we have among our samples, we allow for the configuration of the size of the trade relative to the initial budget. But we will cover that much more in the series.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
May 31, 2025, 10:58:34 AM
 #6

Part 4 is out.

We explain basics of how placing orders on exchanges works and how their matching engines execute the placed orders.

We show examples of how to get information about fills (both partial and full) of your orders using Whale's Secret ScriptApiLib.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
June 06, 2025, 08:38:29 AM
 #7

Order cancelling is discussed in part 5 of our algorithmic trading blog series. 

We explain the basics of order cancelling and point out some edge cases that it is better to be aware of.  We also demonstrate how to use Whale's Secret ScriptApiLib to list and cancel orders on Binance and KuCoin.

Enjoy!

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
joniboini
Legendary
*
Offline Offline

Activity: 2786
Merit: 1866



View Profile WWW
June 07, 2025, 02:43:34 AM
 #8

I've skimmed some of your articles, and it does look pretty cool. That being said, is there no dedicated articles or website pages comparing your product to other free trading bots or similar APIs? Because for me, your pricing can feel a bit expensive without knowing the market rate for such services. While I can spend some time researching it while reading your blog posts, I believe it would be easier for potential customers to figure out if the product is for them if you have a cheat sheet.

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
June 07, 2025, 07:46:06 AM
 #9

I've skimmed some of your articles, and it does look pretty cool. That being said, is there no dedicated articles or website pages comparing your product to other free trading bots or similar APIs? Because for me, your pricing can feel a bit expensive without knowing the market rate for such services. While I can spend some time researching it while reading your blog posts, I believe it would be easier for potential customers to figure out if the product is for them if you have a cheat sheet.

Thanks, that's a good insight. So far we have hoped that people can very much use the free version to see for themselves. But I think you are right that it's not that easy - you don't want to try every library out there first before you make the decision. So I think we have to improve this as you suggest and provide some easy to digest comparison.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
June 14, 2025, 07:02:29 AM
 #10

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!

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
June 21, 2025, 11:56:18 AM
 #11

Part 7 - Trade and Order History

We explain what is a trade in a terminology of an exchange and describe how to get historical trades and orders from an exchange using Whale's Secret ScriptApiLib.

With most exchanges, this action is straightforward, but for some reason it's a challenging task on Binance. We've wrote a dedicated tweet to explain that situation.

Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
bitdude (OP)
Sr. Member
****
Offline Offline

Activity: 296
Merit: 254


View Profile WWW
July 21, 2025, 11:05:09 AM
 #12

Part 8 introduces a simple API to get the exchange account balance. We also discuss common account security features offered by exchanges today.


Whale's Secret ScriptApiLib is a .NET library that provides unified API to different digital assets platforms with focus on easy of use and robust error handling.

Web: whalessecret.com/
Samples GitHub repo: [url=https://github.com/AITIS-s-r-o/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!