Beispiel #1
0
 public void UpdateAssetPairQuotesSource(string assetPairId, AssetPairQuotesSourceTypeDomainEnum sourceType)
 {
     _settingsRootService.Update(assetPairId,
                                 old => new AssetPairSettings(sourceType, old.ExtPriceSettings,
                                                              old.CrossRateCalcInfo, old.AggregateOrderbookSettings));
 }
Beispiel #2
0
 public ImmutableHashSet <string> GetPairsByQuotesSourceType(AssetPairQuotesSourceTypeDomainEnum quotesSourceType)
 {
     return(_settingsRootService.Get().AssetPairs.Where(p => p.Value.QuotesSourceType == quotesSourceType)
            .Select(p => p.Key).ToImmutableHashSet());
 }
Beispiel #3
0
 public AssetPairSettings(AssetPairQuotesSourceTypeDomainEnum quotesSourceType, AssetPairExtPriceSettings extPriceSettings, CrossRateCalcInfo crossRateCalcInfo)
 {
     QuotesSourceType  = quotesSourceType;
     ExtPriceSettings  = extPriceSettings;
     CrossRateCalcInfo = crossRateCalcInfo;
 }