Beispiel #1
0
 public Task <IMarkup> SetForMerchantAsync(string assetPairId, string merchantId, string priceAssetPairId, PriceMethod priceMethod, IMarkupValue markupValue)
 {
     return(_markupRepository.SetAsync(new Markup
     {
         AssetPairId = assetPairId,
         CreatedOn = DateTime.UtcNow,
         DeltaSpread = markupValue.DeltaSpread,
         Percent = markupValue.Percent,
         Pips = markupValue.Pips,
         FixedFee = markupValue.FixedFee,
         PriceAssetPairId = priceAssetPairId,
         PriceMethod = priceMethod,
         IdentityType = MarkupIdentityType.Merchant,
         Identity = merchantId
     }));
 }
Beispiel #2
0
 public UnexpectedAssetPairPriceMethodException(PriceMethod priceMethod) : base("Unexpected price method")
 {
     PriceMethod = priceMethod;
 }