Search Results for

    Show / Hide Table of Contents

    Interface IExchangeRate

    The system entity for exchange rates

    See https://help.lemonedge.com/help/financial-services-engine/trade/exchange-rates/intro.html for more information

    Inherited Members
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities.FinancialServices.Products.FX
    Assembly: LemonEdge.API.Entities.FinancialServices.dll
    Syntax
    [EntityDefinition(EntityID.ExchangeRate, "dbo.LT_ExchangeRates", "ExchangeRate", IsStandingDataEntity = false, HelpURL = "help/financial-services-engine/trade/exchange-rates/intro.html")]
    [DefaultEntityIcon(ImageType.ExchangeRates)]
    [MultipleUnique(new string[] { "EffectiveDate", "FromCurrencyID", "ToCurrencyID", "CategoryID" }, AllowNullOrEmpty = true)]
    public interface IExchangeRate : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    CategoryID

    [Key] Links to IExchangeRateCategory. The optional category this exchange rate is under. Empty indicates the default category.

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.ExchangeRateCategory, "ID", SingleJoinType.ZeroToOne, "Category", "Exchange Rates", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = false, InheritPermissions = false)]
    [EntityKeyProperty]
    [EntityDescription("The optional category this exchange rate is under. Empty indicates the default category.")]
    Guid? CategoryID { get; set; }
    Property Value
    Type Description
    Guid?

    EffectiveDate

    [Key] The date the exchange rate is effective from

    Declaration
    [EntityProperty(SQLType.DateTimeOffset, false, IsDate = true)]
    [EntityDescription("The effective date of the rate for this from currency to currency.")]
    [Required]
    [EntityKeyProperty]
    DateTimeOffset EffectiveDate { get; set; }
    Property Value
    Type Description
    DateTimeOffset

    FromCurrencyID

    [Key] Links to ICurrency. The Currency this exchange rate is exchanging from

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityRelationship(EntityID.Currency, "ID", SingleJoinType.One, "From Currency", "Exchange Rates From", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = false, InheritPermissions = true)]
    [RequiredNoDefaultIDValidation]
    [EntityKeyProperty]
    [EntityDescription("The from currency for the rate on this effective date.")]
    [PropertyValidation("true", "MyItem.FromCurrencyID != MyItem.ToCurrencyID", "From currency and to currency can't be the same.")]
    Guid FromCurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    Rate

    The exchange rate value to exchange from the From Currency to the To Currency

    Declaration
    [EntityProperty(SQLType.Decimal, 18, 12, false)]
    [EntityDescription("The rate from currency to currency for this effective date.")]
    [Required]
    decimal Rate { get; set; }
    Property Value
    Type Description
    decimal

    ToCurrencyID

    [Key] Links to ICurrency. The Currency this exchange rate is exchanging to

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [EntityRelationship(EntityID.Currency, "ID", SingleJoinType.One, "To Currency", "Exchange Rates To", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = false)]
    [RequiredNoDefaultIDValidation]
    [EntityKeyProperty]
    [EntityDescription("The to currency for the rate on this effective date.")]
    [PropertyValidation("true", "MyItem.FromCurrencyID != MyItem.ToCurrencyID", "From currency and to currency can't be the same.")]
    Guid ToCurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    ICurrency
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.