* 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
21 lines
497 B
C#
21 lines
497 B
C#
using Managing.Application.Bots;
|
|
using Managing.Domain.Users;
|
|
using MediatR;
|
|
|
|
namespace Managing.Application.ManageBot.Commands
|
|
{
|
|
public class StartBotCommand : IRequest<string>
|
|
{
|
|
public string Name { get; }
|
|
public TradingBotConfig Config { get; }
|
|
public User User { get; }
|
|
|
|
public StartBotCommand(TradingBotConfig config, string name, User user)
|
|
{
|
|
Config = config;
|
|
Name = name;
|
|
User = user;
|
|
}
|
|
}
|
|
}
|