コード例 #1
0
 public MtController(
     IMarginTradingAccountHistoryRepository accountsHistoryRepository,
     IMarginTradingOrdersHistoryRepository ordersHistoryRepository,
     IMicrographCacheService micrographCacheService,
     IAccountAssetsCacheService accountAssetsCacheService,
     IAssetPairsCache assetPairsCache,
     IMarketMakerMatchingEngine matchingEngine,
     ITradingEngine tradingEngine,
     IAccountsCacheService accountsCacheService,
     IMarginTradingOperationsLogService operationsLogService,
     IConsole consoleWriter,
     OrdersCache ordersCache,
     MarginSettings marginSettings,
     AccountManager accountManager,
     IAssetPairDayOffService assetDayOffService,
     IQuoteCacheService quoteCacheService,
     IIdentityGenerator identityGenerator)
 {
     _accountsHistoryRepository = accountsHistoryRepository;
     _ordersHistoryRepository   = ordersHistoryRepository;
     _micrographCacheService    = micrographCacheService;
     _accountAssetsCacheService = accountAssetsCacheService;
     _assetPairsCache           = assetPairsCache;
     _matchingEngine            = matchingEngine;
     _tradingEngine             = tradingEngine;
     _accountsCacheService      = accountsCacheService;
     _operationsLogService      = operationsLogService;
     _consoleWriter             = consoleWriter;
     _ordersCache        = ordersCache;
     _marginSettings     = marginSettings;
     _accountManager     = accountManager;
     _assetDayOffService = assetDayOffService;
     _quoteCacheService  = quoteCacheService;
     _identityGenerator  = identityGenerator;
 }
コード例 #2
0
ファイル: RisksController.cs プロジェクト: wildbunny/MT
 public RisksController(IAssetPairsCache instrumentsCache,
                        IAccountsCacheService accountsCacheService,
                        MarginSettings marginSettings,
                        IMarginTradingAccountHistoryRepository accountHistoryRepository)
 {
     _instrumentsCache         = instrumentsCache;
     _accountsCacheService     = accountsCacheService;
     _marginSettings           = marginSettings;
     _accountHistoryRepository = accountHistoryRepository;
 }
コード例 #3
0
ファイル: Application.cs プロジェクト: wildbunny/MT
 public Application(IMarginTradingAccountHistoryRepository accountHistoryRepository, ILog logger,
                    Settings settings, CurrentApplicationInfo applicationInfo,
                    IAccountTransactionsReportsRepository accountTransactionsReportsRepository,
                    ISlackNotificationsSender slackNotificationsSender)
     : base(logger, slackNotificationsSender, applicationInfo)
 {
     _accountHistoryRepository = accountHistoryRepository;
     _settings = settings;
     _accountTransactionsReportsRepository = accountTransactionsReportsRepository;
 }
コード例 #4
0
 public AccountHistoryController(
     IMarginTradingAccountsRepository accountsRepository,
     IMarginTradingAccountHistoryRepository accountsHistoryRepository,
     IMarginTradingOrdersHistoryRepository ordersHistoryRepository,
     IOrdersSnapshotReaderService ordersSnapshotReaderService)
 {
     _accountsRepository          = accountsRepository;
     _accountsHistoryRepository   = accountsHistoryRepository;
     _ordersHistoryRepository     = ordersHistoryRepository;
     _ordersSnapshotReaderService = ordersSnapshotReaderService;
 }
コード例 #5
0
 public AccountProfileController(
     IMarginTradingAccountHistoryRepository accountsHistoryRepository,
     IMarginTradingOrdersHistoryRepository ordersHistoryRepository,
     IAccountsCacheService accountsCacheService,
     OrdersCache ordersCache,
     MarginSettings settings)
 {
     _accountsHistoryRepository = accountsHistoryRepository;
     _ordersHistoryRepository   = ordersHistoryRepository;
     _accountsCacheService      = accountsCacheService;
     _ordersCache = ordersCache;
     _settings    = settings;
 }