Add copy trading functionality with StartCopyTrading endpoint and related models. Implemented position copying from master bot and subscription to copy trading stream in LiveTradingBotGrain. Updated TradingBotConfig to support copy trading parameters.

This commit is contained in:
2025-11-16 14:54:17 +07:00
parent 428e36d744
commit 1e15d5f23b
10 changed files with 711 additions and 173 deletions

View File

@@ -104,4 +104,15 @@ public class TradingBotConfig
/// </summary>
[Id(20)]
public bool UseForDynamicStopLoss { get; set; } = true;
/// <summary>
/// Parameter to indicate if the bot is for copy trading
/// </summary>
[Id(21)]
public bool IsForCopyTrading { get; set; } = false;
/// <summary>
/// The identifier of the master bot to copy trades from when IsForCopyTrading is true
/// </summary>
[Id(22)]
public Guid? MasterBotIdentifier { get; set; }
}