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:
Oda
2025-05-09 17:40:31 +02:00
committed by GitHub
parent a8eb0aaf02
commit 7c38c27b4a
54 changed files with 5164 additions and 641 deletions

View File

@@ -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; }
}

View File

@@ -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();

View File

@@ -6,4 +6,5 @@ public class User
{
public string Name { get; set; }
public List<Account> Accounts { get; set; }
public string AgentName { get; set; }
}