Esempio n. 1
0
 /// <summary>
 /// Запускает расчет для текущей сетки
 /// </summary>
 /// <param name="depositAsset"></param>
 /// <param name="depositQuote"></param>
 /// <returns></returns>
 public List <StopLimitOrderTest> CalcCurrentGrid(double depositAsset, double depositQuote)
 {
     logService.CreateLogFile("curretn_grid");
     SetConfifuration();
     tradeConfiguration.GeneralSetting.DepositAsset = depositAsset;
     tradeConfiguration.GeneralSetting.DepositQuote = depositQuote;
     return(StartAlgoritm(-1));
 }
Esempio n. 2
0
 public AccountInfo(APIKeyRepository keyRepo, BalanceRepository balanceRepo)
 {
     this.keyRepo     = keyRepo;
     this.balanceRepo = balanceRepo;
     logService       = new LogService();
     logService.CreateLogFile("AccountInfo");
 }
Esempio n. 3
0
 public TradeAccountInfo(APIKeyRepository keyRepo, TradeConfigRepository configRepository, TradeRepository tradeRepository)
 {
     this.keyRepo          = keyRepo;
     this.configRepository = configRepository;
     this.tradeRepository  = tradeRepository;
     logService            = new LogService();
     logService.CreateLogFile("TradeAccountInfo");
 }