Fixes for bots running (#22)
* Fixes for bots running * Up botmanager * Add cooldown * Refact can open position * Add cooldown Period and MaxLossStreak * Add agentName * Add env variable for botManager * Always enable Botmanager * Fix bot handle * Fix get positions * Add Ticker url * Dont start stopped bot * fix
This commit is contained in:
@@ -516,6 +516,7 @@ public static class MongoMappers
|
||||
return new User
|
||||
{
|
||||
Name = user.Name,
|
||||
AgentName = user.AgentName
|
||||
};
|
||||
}
|
||||
|
||||
@@ -523,7 +524,8 @@ public static class MongoMappers
|
||||
{
|
||||
return new UserDto
|
||||
{
|
||||
Name = user.Name
|
||||
Name = user.Name,
|
||||
AgentName = user.AgentName
|
||||
};
|
||||
}
|
||||
|
||||
@@ -724,6 +726,7 @@ public static class MongoMappers
|
||||
Identifier = bot.Identifier,
|
||||
BotType = bot.BotType,
|
||||
Data = bot.Data,
|
||||
LastStatus = bot.LastStatus
|
||||
};
|
||||
}
|
||||
|
||||
@@ -736,7 +739,8 @@ public static class MongoMappers
|
||||
User = Map(b.User),
|
||||
Identifier = b.Identifier,
|
||||
BotType = b.BotType,
|
||||
Data = b.Data
|
||||
Data = b.Data,
|
||||
LastStatus = b.LastStatus
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user