コード例 #1
0
 public TradesController(
     IInternalTradeService internalTradeService,
     IVirtualTradeService virtualTradeService,
     ILykkeTradeService lykkeTradeService,
     IExternalTradeService externalTradeService)
 {
     _internalTradeService = internalTradeService;
     _virtualTradeService  = virtualTradeService;
     _lykkeTradeService    = lykkeTradeService;
     _externalTradeService = externalTradeService;
 }
コード例 #2
0
 public ExternalTradeSubscriber(ILogFactory logFactory,
                                ExchangeSettings exchangeSettings,
                                IExternalTradeService externalTradeService,
                                IRealisedPnLService realisedPnLService)
 {
     _log                  = logFactory.CreateLog(this);
     _logFactory           = logFactory;
     _settings             = exchangeSettings;
     _externalTradeService = externalTradeService;
     _realisedPnLService   = realisedPnLService;
 }
 public ExternalExchangeAdapter(
     string exchangeName,
     ExchangeAdapterClientFactory exchangeAdapterClientFactory,
     IHedgeLimitOrderService hedgeLimitOrderService,
     IInstrumentService instrumentService,
     IExternalOrderRepository externalOrderRepository,
     IExternalTradeService externalTradeService,
     IPositionService positionService,
     ILogFactory logFactory,
     IReadOnlyDictionary <string, string> assetPairMapping)
 {
     Name = exchangeName;
     _exchangeAdapterClientFactory = exchangeAdapterClientFactory;
     _hedgeLimitOrderService       = hedgeLimitOrderService;
     _instrumentService            = instrumentService;
     _externalOrderRepository      = externalOrderRepository;
     _externalTradeService         = externalTradeService;
     _positionService  = positionService;
     _assetPairMapping = assetPairMapping;
     _log = logFactory.CreateLog(this);
 }
コード例 #4
0
 public ExternalTradesController(IExternalTradeService externalTradeService)
 {
     _externalTradeService = externalTradeService;
 }