Exemple #1
0
 public QuoteService(
     ILogger <QuoteService> logger,
     IAssetsDictionaryClient assetsClient,
     ISpotInstrumentDictionaryClient spotInstrumentDictionaryClient,
     ILiquidityConverterSettingsAccessor liquidityConverterSettingsAccessor,
     ISpotInstrumentFeesClient spotInstrumentFeesClient,
     IOrderBookService orderBookService,
     IQuotesContextProvider quotesContextProvider,
     ICashServiceClient cashServiceClient,
     ITradingServiceClient tradingServiceClient,
     IConvertQuoteStorage convertQuoteStorage,
     IInstrumentEngine instrumentEngine)
 {
     _logger       = logger;
     _assetsClient = assetsClient;
     _spotInstrumentDictionaryClient     = spotInstrumentDictionaryClient;
     _liquidityConverterSettingsAccessor = liquidityConverterSettingsAccessor;
     _spotInstrumentFeesClient           = spotInstrumentFeesClient;
     _orderBookService      = orderBookService;
     _quotesContextProvider = quotesContextProvider;
     _cashServiceClient     = cashServiceClient;
     _tradingServiceClient  = tradingServiceClient;
     _convertQuoteStorage   = convertQuoteStorage;
     _instrumentEngine      = instrumentEngine;
 }
Exemple #2
0
 public SpotChangeBalanceService(ILogger <SpotChangeBalanceService> logger,
                                 IBalanceOperationService balanceOperationService,
                                 IAssetsDictionaryClient assetsDictionaryClient,
                                 IClientWalletService clientWalletService,
                                 IServiceBusPublisher <ManualChangeBalanceMessage> publisher)
 {
     _logger = logger;
     _balanceOperationService = balanceOperationService;
     _assetsDictionaryClient  = assetsDictionaryClient;
     _clientWalletService     = clientWalletService;
     _publisher = publisher;
 }
Exemple #3
0
 public FireblocksDepositProcessingService(
     ILogger <FireblocksDepositProcessingService> logger,
     DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder,
     IAssetsDictionaryClient assetsDictionary,
     IServiceBusPublisher <Deposit> depositPublisher,
     ICircleAssetMapper circleAssetMapper,
     ICircleBlockchainMapper circleBlockchainMapper)
 {
     _logger = logger;
     _dbContextOptionsBuilder = dbContextOptionsBuilder;
     _assetsDictionary        = assetsDictionary;
     _depositPublisher        = depositPublisher;
 }
 public InstrumentEngine(
     ILogger <QuoteService> logger,
     IAssetsDictionaryClient assetsClient,
     ISpotInstrumentDictionaryClient spotInstrumentDictionaryClient,
     ILiquidityConverterSettingsAccessor liquidityConverterSettingsAccessor,
     ISpotInstrumentFeesClient spotInstrumentFeesClient,
     IOrderBookService orderBookService)
 {
     _logger       = logger;
     _assetsClient = assetsClient;
     _spotInstrumentDictionaryClient     = spotInstrumentDictionaryClient;
     _liquidityConverterSettingsAccessor = liquidityConverterSettingsAccessor;
     _spotInstrumentFeesClient           = spotInstrumentFeesClient;
     _orderBookService = orderBookService;
 }
 public BitgoDepositTransferProcessService(
     ILogger <BitgoDepositTransferProcessService> logger,
     IAssetMapper assetMapper,
     IWalletMapper walletMapper,
     IBitGoClient bitgoClient,
     DbContextOptionsBuilder <DatabaseContext> dbContextOptionsBuilder,
     IAssetsDictionaryClient assetsDictionary,
     IMyNoSqlServerDataReader <BitgoCoinEntity> bitgoCoinReader)
 {
     _logger                  = logger;
     _assetMapper             = assetMapper;
     _walletMapper            = walletMapper;
     _bitgoClient             = bitgoClient;
     _dbContextOptionsBuilder = dbContextOptionsBuilder;
     _assetsDictionary        = assetsDictionary;
     _bitgoCoinReader         = bitgoCoinReader;
 }
        public BitGoDepositAddressesGenerationJob(
            ILogger <BitGoDepositAddressesGenerationJob> logger,
            IBitGoAssetMapSettingsService bitGoAssetMapSettingsService,
            IMyNoSqlServerDataWriter <GeneratedDepositAddressEntity> dataWriter,
            DepositAddressGeneratorService depositAddressGeneratorService,
            IAssetsDictionaryClient assetsDictionaryClient,
            IAssetPaymentSettingsClient assetPaymentSettingsClient)
        {
            _logger = logger;
            _bitGoAssetMapSettingsService = bitGoAssetMapSettingsService;
            _dataWriter = dataWriter;
            _depositAddressGeneratorService = depositAddressGeneratorService;
            _assetsDictionaryClient         = assetsDictionaryClient;
            _assetPaymentSettingsClient     = assetPaymentSettingsClient;

            _timer = new MyTaskTimer(typeof(BitGoDepositAddressesGenerationJob),
                                     TimeSpan.FromSeconds(Program.ReloadedSettings(e => e.GenerateAddressesIntervalSec).Invoke()),
                                     logger, DoTime);
        }