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:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user