示例#1
0
 public CurrencyPositionWithNewQuotesUpdaterService(ISourceCache <Quote, string> quotes,
                                                    ISourceCache <CurPositionPerClient, string> curPositionPerClient,
                                                    ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.curPositionPerClient = curPositionPerClient;
     this.quotes = quotes;
 }
 public PositionPerCurrencyPairCalculatorService(ISourceCache <Trade, long> myTrades,
                                                 ISourceCache <CurPairPositionPerClient, string> curPairPositionPerClient,
                                                 ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.myTrades = myTrades;
     this.curPairPositionPerClient = curPairPositionPerClient;
 }
 public PAndLUpdaterService(ISourceCache <Trade, long> myTrades,
                            ISourceCache <BalancePerClient, long> clientBalances,
                            ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.myTrades       = myTrades;
     this.clientBalances = clientBalances;
 }
 public MarginCalculatorService(ISourceCache <BalancePerClient, long> clientBalances,
                                ISourceCache <CurPositionPerClient, string> curPositionPerClient,
                                ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.clientBalances       = clientBalances;
     this.curPositionPerClient = curPositionPerClient;
 }
示例#5
0
 public QuoteExtractorService(ISourceCache <Trade, long> myTrades,
                              ISourceCache <Quote, string> quotes,
                              ISourceCache <BalancePerClient, long> clientBalances,
                              ITradesModifierService tradesModifierService,
                              ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.myTrades              = myTrades;
     this.quotes                = quotes;
     this.clientBalances        = clientBalances;
     this.tradesModifierService = tradesModifierService;
 }
示例#6
0
 public UpdateTradesService(ISourceCache <Trade, long> myTrades,
                            ISourceCache <Quote, string> quotes,
                            ICurrencyConverterService currencyConverter,
                            ISourceCache <Trade, long> myTradesQuoteUpdate,
                            ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.myTrades            = myTrades;
     this.quotes              = quotes;
     this.currencyConverter   = currencyConverter;
     this.myTradesQuoteUpdate = myTradesQuoteUpdate;
 }
示例#7
0
 public StopOutExecutorService(ISourceCache <Quote, string> quotes,
                               ISourceCache <BalancePerClient, long> clientBalances,
                               ISourceCache <CurPairPositionPerClient, string> curPairPositionPerClient,
                               ITradesModifierService tradesModifierService,
                               ICurrencyConverterService currencyConverterService,
                               ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.quotes                   = quotes;
     this.clientBalances           = clientBalances;
     this.curPairPositionPerClient = curPairPositionPerClient;
     this.tradesModifierService    = tradesModifierService;
     this.currencyConverterService = currencyConverterService;
 }
 public LogPrinterService(ISourceCache <Trade, long> myTrades,
                          ISourceCache <BalancePerClient, long> clientBalances,
                          ISourceCache <CurPairPositionPerClient, string> curPairPositionPerClient,
                          ISourceCache <CurPositionPerClient, string> curPositionPerClient,
                          IObservableCache <CurPositionPerClient, string> curPositionPerClientCache,
                          ISourceCache <CurPositionPerClient, string> curPositionPerClientQuoteUpdate,
                          ISourceCache <Trade, long> myTradesQuoteUpdate,
                          ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.myTrades                        = myTrades;
     this.clientBalances                  = clientBalances;
     this.curPairPositionPerClient        = curPairPositionPerClient;
     this.curPositionPerClient            = curPositionPerClient;
     this.curPositionPerClientCache       = curPositionPerClientCache;
     this.myTradesQuoteUpdate             = myTradesQuoteUpdate;
     this.curPositionPerClientQuoteUpdate = curPositionPerClientQuoteUpdate;
 }
 public BaseService(ISubscriberCommunicator communicator = null)
 {
     this.communicator = communicator;
     this.logger       = LogManager.GetLogger("MarginTrader");
 }
示例#10
0
 public TradeSubscriberService(ISourceCache <Trade, long> myTrades,
                               ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.myTrades = myTrades;
 }
 public ClientBalancesSubscriberService(ISourceCache <BalancePerClient, long> clientBalances, ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.clientBalances = clientBalances;
 }
 public CurPositionPerClientSubscriberService(ISourceCache <CurPositionPerClient, string> curPositionPerClient, ISubscriberCommunicator communicator = null)
     : base(communicator)
 {
     this.curPositionPerClient = curPositionPerClient;
 }
示例#13
0
 public QuoteSubscriberService(ISourceCache <Quote, string> quotes,
                               ISubscriberCommunicator communicator)
     : base(communicator)
 {
     this.quotes = quotes;
 }
 public SubscribeTradesService(ISourceCache <Trade, long> myTrades,
                               ISourceCache <Quote, string> quotes,
                               ISourceCache <BalancePerClient, long> clientBalances,
                               ISourceCache <CurPairPositionPerClient, string> curPairPositionPerClient,
                               ISourceCache <CurPositionPerClient, string> curPositionPerClient, ISubscriberCommunicator communicator)
     : base(myTrades, quotes, clientBalances, curPairPositionPerClient, curPositionPerClient, communicator)
 {
 }