Loading backup
This commit is contained in:
@@ -38,7 +38,6 @@ namespace Managing.Application.Bots
|
||||
flipPosition: true)
|
||||
{
|
||||
BotType = BotType.FlippingBot;
|
||||
Start();
|
||||
}
|
||||
|
||||
public sealed override void Start()
|
||||
|
||||
@@ -37,7 +37,6 @@ namespace Managing.Application.Bots
|
||||
isForWatchingOnly)
|
||||
{
|
||||
BotType = BotType.ScalpingBot;
|
||||
Start();
|
||||
}
|
||||
|
||||
public sealed override void Start()
|
||||
|
||||
@@ -18,7 +18,6 @@ namespace Managing.Application.Bots
|
||||
_botService = botService;
|
||||
_workflow = workflow;
|
||||
Interval = 100;
|
||||
Start();
|
||||
}
|
||||
|
||||
public override void Start()
|
||||
|
||||
@@ -670,7 +670,6 @@ public class TradingBot : Bot, ITradingBot
|
||||
{
|
||||
Name = Name,
|
||||
BotType = BotType,
|
||||
Strategies = Strategies,
|
||||
Signals = Signals,
|
||||
Positions = Positions,
|
||||
Timeframe = Timeframe,
|
||||
@@ -687,7 +686,6 @@ public class TradingBot : Bot, ITradingBot
|
||||
public override void LoadBackup(BotBackup backup)
|
||||
{
|
||||
var data = JsonConvert.DeserializeObject<TradingBotBackup>(backup.Data);
|
||||
Strategies = data.Strategies;
|
||||
Signals = data.Signals;
|
||||
Positions = data.Positions;
|
||||
WalletBalances = data.WalletBalances;
|
||||
@@ -698,7 +696,6 @@ public class TradingBotBackup
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public BotType BotType { get; set; }
|
||||
public HashSet<IStrategy> Strategies { get; set; }
|
||||
public HashSet<Signal> Signals { get; set; }
|
||||
public List<Position> Positions { get; set; }
|
||||
public Timeframe Timeframe { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user