FastQuant.CurrencyConverterFX.GetPrice C# (CSharp) Méthode

GetPrice() private static méthode

private static GetPrice ( Instrument instrument ) : double
instrument Instrument
Résultat double
        private static double GetPrice(Instrument instrument)
        {
            if (instrument.Bid != null)
                return instrument.Bid.Price;

            if (instrument.Ask != null)
                return instrument.Ask.Price;
          
            if (instrument.Trade != null)
                return instrument.Trade.Price;

            if (instrument.Bar != null)
                return instrument.Bar.Close;

            return 0;
        }
    }