49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using Microsoft.Extensions.Logging;
|
|
using static Managing.Common.Enums;
|
|
using Managing.Application.Abstractions.Services;
|
|
using Managing.Domain.MoneyManagements;
|
|
|
|
namespace Managing.Application.Bots
|
|
{
|
|
public class ScalpingBot : TradingBot
|
|
{
|
|
public ScalpingBot(string accountName,
|
|
MoneyManagement moneyManagement,
|
|
string name,
|
|
string scenario,
|
|
IExchangeService exchangeService,
|
|
Ticker ticker,
|
|
ITradingService tradingService,
|
|
ILogger<TradingBot> logger,
|
|
Timeframe timeframe,
|
|
IAccountService accountService,
|
|
IMessengerService messengerService,
|
|
bool isForBacktest = false,
|
|
bool isForWatchingOnly = false)
|
|
: base(accountName,
|
|
moneyManagement,
|
|
name,
|
|
ticker,
|
|
scenario,
|
|
exchangeService,
|
|
logger,
|
|
tradingService,
|
|
timeframe,
|
|
accountService,
|
|
messengerService,
|
|
isForBacktest,
|
|
isForWatchingOnly)
|
|
{
|
|
BotType = BotType.ScalpingBot;
|
|
Start();
|
|
}
|
|
|
|
public sealed override void Start()
|
|
{
|
|
Logger.LogInformation($"{Name} - Bot Started");
|
|
base.Start();
|
|
Logger.LogInformation($"Starting {Name} bot - Status : {Status}");
|
|
}
|
|
}
|
|
}
|