Example #1
0
 /// <summary>
 /// Convert a FRED series to a QDMS instrument.
 /// Datasource needs to be set externally to FRED.
 /// </summary>
 public static Instrument SeriesToInstrument(FredSeries series)
 {
     return(new Instrument
     {
         Symbol = series.ID,
         DatasourceSymbol = series.ID,
         Name = series.Title,
         Multiplier = 1,
         Type = InstrumentType.Index
     });
 }
Example #2
0
 /// <summary>
 /// Convert a FRED series to a QDMS instrument.
 /// Datasource needs to be set externally to FRED.
 /// </summary>
 public static Instrument SeriesToInstrument(FredSeries series)
 {
     return new Instrument
     {
         Symbol = series.ID,
         DatasourceSymbol = series.ID,
         Name = series.Title,
         Multiplier = 1,
         Type = InstrumentType.Index
     };
 }