Esempio n. 1
0
 public void SubQuote(TEsQuoteReqField sub)
 {
     //TEsQuoteReqField sub = new TEsQuoteReqField();
     //sub.CmbType = 0;
     //sub.SubQuote = EsunnySubQuoteType.订阅;
     //sub.Exchange = EsunnyExchangeType.CZCE;
     //sub.Contract1 = symbolCode;
     EsunnyWrapper.InvokeAPI(this._instance, EsunnyWrapperAction.SubQuote, sub);
 }
Esempio n. 2
0
        private void symbolCodeComboBox1_SelectedValueChanged(object sender, EventArgs e)
        {
            if (symbolCodeComboBox1.SelectedItem != null)
              {
            TEsContractRspField field = (TEsContractRspField)symbolCodeComboBox1.SelectedItem;

            TEsQuoteReqField req = new TEsQuoteReqField();
            req.Exchange = field.Exchange;
            req.CmbType = EsunnyCombinOrderType.Normal;
            req.Contract1 = field.Contract;
            req.SubQuote = EsunnySubQuoteType.订阅;
            this.quote.SubQuote(req);
              }
        }
Esempio n. 3
0
 public void SubQuote(TEsQuoteReqField sub)
 {
     //TEsQuoteReqField sub = new TEsQuoteReqField();
       //sub.CmbType = 0;
       //sub.SubQuote = EsunnySubQuoteType.订阅;
       //sub.Exchange = EsunnyExchangeType.CZCE;
       //sub.Contract1 = symbolCode;
       EsunnyWrapper.InvokeAPI(this._instance, EsunnyWrapperAction.SubQuote, sub);
 }