private void OnRspQryInstrument(object sender, ref InstrumentField instrument, int size1, bool bIsLast)
        {
            if (size1 > 0)
            {
                InstrumentInfoList.Add(new InstrumentInfo()
                {
                    Symbol = instrument.Symbol,
                    Instrument = instrument.InstrumentID,
                    Exchange = instrument.ExchangeID,
                    ProductID = instrument.ProductID,
                    TickSize = instrument.PriceTick,
                    Factor = instrument.VolumeMultiple
                });
            }

            this.bIsLast = bIsLast;
        }
Beispiel #2
0
 static void OnRspQryInstrument(object sender, ref InstrumentField instrument,int size1, bool bIsLast)
 {
     Console.WriteLine(instrument.InstrumentName);
 }
Beispiel #3
0
 static void OnRspQryInstrument(object sender, ref InstrumentField instrument, int size1, bool bIsLast)
 {
     Console.WriteLine(instrument.InstrumentName);
 }
Beispiel #4
0
 public static string InstrumentName(this InstrumentField field)
 {
     return(PInvokeUtility.GetUnicodeString(field.InstrumentName));
 }