Add stats for kaigen
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Managing.Application.Abstractions;
|
||||
using MediatR;
|
||||
|
||||
namespace Managing.Application.ManageBot.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Command to retrieve all strategies owned by a specific user
|
||||
/// </summary>
|
||||
public class GetUserStrategiesCommand : IRequest<List<ITradingBot>>
|
||||
{
|
||||
public string UserName { get; }
|
||||
|
||||
public GetUserStrategiesCommand(string userName)
|
||||
{
|
||||
UserName = userName;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using Managing.Application.Abstractions;
|
||||
using MediatR;
|
||||
|
||||
namespace Managing.Application.ManageBot.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Command to retrieve a specific strategy owned by a user
|
||||
/// </summary>
|
||||
public class GetUserStrategyCommand : IRequest<ITradingBot>
|
||||
{
|
||||
/// <summary>
|
||||
/// The username of the agent/user that owns the strategy
|
||||
/// </summary>
|
||||
public string AgentName { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the strategy/bot to retrieve
|
||||
/// </summary>
|
||||
public string StrategyName { get; }
|
||||
|
||||
public GetUserStrategyCommand(string agentName, string strategyName)
|
||||
{
|
||||
AgentName = agentName;
|
||||
StrategyName = strategyName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user