Example #1
0
        public static string Factory_InstrumentFactory_AddFwdStartingSwaps(string instrumentFactoryHandle, object[] swapStrings)
        {
            var swapStringsString = swapStrings.Cast <string>().ToArray();

            InstrumentFactoryFunctions.InstrumentFactory_AddFwdStartingSwaps(instrumentFactoryHandle, swapStringsString);
            return("Added " + swapStrings.Length + " swap-instruments to " + instrumentFactoryHandle);
        }
Example #2
0
        public static string Factory_InstrumentFactory_AddFutures(string instrumentFactoryHandle, object[] futureStrings)
        {
            var futureStringsString = futureStrings.Cast <string>().ToArray();

            InstrumentFactoryFunctions.InstrumentFactory_AddFutures(instrumentFactoryHandle, futureStringsString);
            return("Added " + futureStrings.Length + " futures-instruments to " + instrumentFactoryHandle);
        }
Example #3
0
        public static string Factory_UpdateAllInstrumentsToPar(string baseHandle, string modelHandle)
        {
            Stopwatch sw = new Stopwatch();

            sw.Start();
            InstrumentFactoryFunctions.InstrumentFactory_UpdateAllInstrumentsToPar(baseHandle, modelHandle);
            sw.Stop();
            return("Updated all instruments to par in factory " + baseHandle + " using model " + modelHandle + ". CalcTime: " + sw.ElapsedMilliseconds);
        }
Example #4
0
 public static object[,] Factory_InstrumentFactory_GetInstrumentInfo(string instrumentHandle, string instrumentFactoryHandle)
 {
     return(InstrumentFactoryFunctions.InstrumentFactory_GetInstrumentInfo(instrumentFactoryHandle, instrumentHandle));
 }
Example #5
0
 public static double Factory_InstrumentFactory_ValueInstrument(string instrumentHandle, string instrumentFactoryHandle, string linearRateModelHandle)
 {
     return(InstrumentFactoryFunctions.ValueInstrument(instrumentHandle, instrumentFactoryHandle, linearRateModelHandle));
 }
Example #6
0
 public static string Factory_InstrumentFactory_Make(string instrumentFactoryHandle)
 {
     InstrumentFactoryFunctions.InstrumentFactory_StoreInstrumentsInMap(instrumentFactoryHandle);
     return("Instruments added to ObjectMap.");
 }
Example #7
0
 public static string Factory_InstrumentFactory_Make(string baseHandle, DateTime asOf)
 {
     InstrumentFactoryFunctions.InstrumentFactory_Make(baseHandle, asOf);
     return(baseHandle);
 }