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:
@@ -9,4 +9,5 @@ public class BotBackup
|
||||
public string Identifier { get; set; }
|
||||
public User User { get; set; }
|
||||
public string Data { get; set; }
|
||||
public BotStatus LastStatus { get; set; }
|
||||
}
|
||||
@@ -1,7 +1,10 @@
|
||||
namespace Managing.Domain.Bots
|
||||
using Managing.Domain.Users;
|
||||
|
||||
namespace Managing.Domain.Bots
|
||||
{
|
||||
public interface IBot
|
||||
{
|
||||
User User { get; set; }
|
||||
string Name { get; set; }
|
||||
void Start();
|
||||
void Stop();
|
||||
|
||||
@@ -6,4 +6,5 @@ public class User
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public List<Account> Accounts { get; set; }
|
||||
public string AgentName { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user