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; }
static void OnRspQryInstrument(object sender, ref InstrumentField instrument,int size1, bool bIsLast) { Console.WriteLine(instrument.InstrumentName); }
static void OnRspQryInstrument(object sender, ref InstrumentField instrument, int size1, bool bIsLast) { Console.WriteLine(instrument.InstrumentName); }
public static string InstrumentName(this InstrumentField field) { return(PInvokeUtility.GetUnicodeString(field.InstrumentName)); }