FastQuant.InstrumentManager.GetById C# (CSharp) Method

GetById() public method

public GetById ( int id ) : Instrument
id int
return Instrument
        public Instrument GetById(int id)
        {
            var i = Instruments.GetById(id);
            if (i == null)
            {
                i = new Instrument(id, InstrumentType.Synthetic, Guid.NewGuid().ToString(), "", CurrencyId.USD);
                Instruments.Add(i);
            }
            return i;
        }