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 })); }
public UnexpectedAssetPairPriceMethodException(PriceMethod priceMethod) : base("Unexpected price method") { PriceMethod = priceMethod; }