Class: Ctp::CThostFtdcMarketDataField

Inherits:
Object
  • Object
show all
Defined in:
ext/ctp/ctp.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



98867
98868
98869
98870
98871
98872
98873
98874
98875
98876
98877
98878
98879
98880
# File 'ext/ctp/ctp.cxx', line 98867

SWIGINTERN VALUE
_wrap_new_CThostFtdcMarketDataField(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataField";
  CThostFtdcMarketDataField *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (CThostFtdcMarketDataField *)new CThostFtdcMarketDataField();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#ActionDay(*args) ⇒ Object



98822
98823
98824
98825
98826
98827
98828
98829
98830
98831
98832
98833
98834
98835
98836
98837
98838
98839
98840
98841
98842
98843
98844
98845
98846
98847
98848
98849
# File 'ext/ctp/ctp.cxx', line 98822

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ActionDay_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ActionDay", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (char *) ((arg1)->ActionDay);
  {
    size_t size = SWIG_strnlen(result, 9);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#ActionDay=(*args) ⇒ Object



98792
98793
98794
98795
98796
98797
98798
98799
98800
98801
98802
98803
98804
98805
98806
98807
98808
98809
98810
98811
98812
98813
98814
98815
98816
98817
98818
98819
# File 'ext/ctp/ctp.cxx', line 98792

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ActionDay_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[9] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ActionDay", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 9);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ActionDay", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->ActionDay,arg2,9*sizeof(char));
  else memset(arg1->ActionDay,0,9*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#ClosePrice(*args) ⇒ Object



98390
98391
98392
98393
98394
98395
98396
98397
98398
98399
98400
98401
98402
98403
98404
98405
98406
98407
98408
98409
98410
98411
# File 'ext/ctp/ctp.cxx', line 98390

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ClosePrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ClosePrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->ClosePrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#ClosePrice=(*args) ⇒ Object



98361
98362
98363
98364
98365
98366
98367
98368
98369
98370
98371
98372
98373
98374
98375
98376
98377
98378
98379
98380
98381
98382
98383
98384
98385
98386
98387
# File 'ext/ctp/ctp.cxx', line 98361

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ClosePrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ClosePrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","ClosePrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->ClosePrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#CurrDelta(*args) ⇒ Object



98655
98656
98657
98658
98659
98660
98661
98662
98663
98664
98665
98666
98667
98668
98669
98670
98671
98672
98673
98674
98675
98676
# File 'ext/ctp/ctp.cxx', line 98655

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_CurrDelta_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcRatioType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","CurrDelta", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcRatioType) ((arg1)->CurrDelta);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#CurrDelta=(*args) ⇒ Object



98626
98627
98628
98629
98630
98631
98632
98633
98634
98635
98636
98637
98638
98639
98640
98641
98642
98643
98644
98645
98646
98647
98648
98649
98650
98651
98652
# File 'ext/ctp/ctp.cxx', line 98626

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_CurrDelta_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcRatioType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","CurrDelta", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CurrDelta", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcRatioType >(val2);
  if (arg1) (arg1)->CurrDelta = arg2;
  return Qnil;
fail:
  return Qnil;
}

#ExchangeID(*args) ⇒ Object



97741
97742
97743
97744
97745
97746
97747
97748
97749
97750
97751
97752
97753
97754
97755
97756
97757
97758
97759
97760
97761
97762
97763
97764
97765
97766
97767
97768
# File 'ext/ctp/ctp.cxx', line 97741

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ExchangeID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (char *) ((arg1)->ExchangeID);
  {
    size_t size = SWIG_strnlen(result, 9);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#ExchangeID=(*args) ⇒ Object



97711
97712
97713
97714
97715
97716
97717
97718
97719
97720
97721
97722
97723
97724
97725
97726
97727
97728
97729
97730
97731
97732
97733
97734
97735
97736
97737
97738
# File 'ext/ctp/ctp.cxx', line 97711

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ExchangeID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[9] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 9);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","ExchangeID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->ExchangeID,arg2,9*sizeof(char));
  else memset(arg1->ExchangeID,0,9*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#ExchangeInstID(*args) ⇒ Object



97801
97802
97803
97804
97805
97806
97807
97808
97809
97810
97811
97812
97813
97814
97815
97816
97817
97818
97819
97820
97821
97822
97823
97824
97825
97826
97827
97828
# File 'ext/ctp/ctp.cxx', line 97801

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ExchangeInstID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeInstID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (char *) ((arg1)->ExchangeInstID);
  {
    size_t size = SWIG_strnlen(result, 31);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#ExchangeInstID=(*args) ⇒ Object



97771
97772
97773
97774
97775
97776
97777
97778
97779
97780
97781
97782
97783
97784
97785
97786
97787
97788
97789
97790
97791
97792
97793
97794
97795
97796
97797
97798
# File 'ext/ctp/ctp.cxx', line 97771

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_ExchangeInstID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[31] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","ExchangeInstID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 31);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","ExchangeInstID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->ExchangeInstID,arg2,31*sizeof(char));
  else memset(arg1->ExchangeInstID,0,31*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#HighestPrice(*args) ⇒ Object



98125
98126
98127
98128
98129
98130
98131
98132
98133
98134
98135
98136
98137
98138
98139
98140
98141
98142
98143
98144
98145
98146
# File 'ext/ctp/ctp.cxx', line 98125

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_HighestPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","HighestPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->HighestPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#HighestPrice=(*args) ⇒ Object



98096
98097
98098
98099
98100
98101
98102
98103
98104
98105
98106
98107
98108
98109
98110
98111
98112
98113
98114
98115
98116
98117
98118
98119
98120
98121
98122
# File 'ext/ctp/ctp.cxx', line 98096

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_HighestPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","HighestPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","HighestPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->HighestPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#InstrumentID(*args) ⇒ Object



97681
97682
97683
97684
97685
97686
97687
97688
97689
97690
97691
97692
97693
97694
97695
97696
97697
97698
97699
97700
97701
97702
97703
97704
97705
97706
97707
97708
# File 'ext/ctp/ctp.cxx', line 97681

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","InstrumentID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (char *) ((arg1)->InstrumentID);
  {
    size_t size = SWIG_strnlen(result, 31);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#InstrumentID=(*args) ⇒ Object



97651
97652
97653
97654
97655
97656
97657
97658
97659
97660
97661
97662
97663
97664
97665
97666
97667
97668
97669
97670
97671
97672
97673
97674
97675
97676
97677
97678
# File 'ext/ctp/ctp.cxx', line 97651

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[31] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","InstrumentID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 31);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
  else memset(arg1->InstrumentID,0,31*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#LastPrice(*args) ⇒ Object



97860
97861
97862
97863
97864
97865
97866
97867
97868
97869
97870
97871
97872
97873
97874
97875
97876
97877
97878
97879
97880
97881
# File 'ext/ctp/ctp.cxx', line 97860

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_LastPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LastPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->LastPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#LastPrice=(*args) ⇒ Object



97831
97832
97833
97834
97835
97836
97837
97838
97839
97840
97841
97842
97843
97844
97845
97846
97847
97848
97849
97850
97851
97852
97853
97854
97855
97856
97857
# File 'ext/ctp/ctp.cxx', line 97831

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_LastPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LastPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LastPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->LastPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#LowerLimitPrice(*args) ⇒ Object



98549
98550
98551
98552
98553
98554
98555
98556
98557
98558
98559
98560
98561
98562
98563
98564
98565
98566
98567
98568
98569
98570
# File 'ext/ctp/ctp.cxx', line 98549

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_LowerLimitPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowerLimitPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->LowerLimitPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#LowerLimitPrice=(*args) ⇒ Object



98520
98521
98522
98523
98524
98525
98526
98527
98528
98529
98530
98531
98532
98533
98534
98535
98536
98537
98538
98539
98540
98541
98542
98543
98544
98545
98546
# File 'ext/ctp/ctp.cxx', line 98520

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_LowerLimitPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowerLimitPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowerLimitPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->LowerLimitPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#LowestPrice(*args) ⇒ Object



98178
98179
98180
98181
98182
98183
98184
98185
98186
98187
98188
98189
98190
98191
98192
98193
98194
98195
98196
98197
98198
98199
# File 'ext/ctp/ctp.cxx', line 98178

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_LowestPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowestPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->LowestPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#LowestPrice=(*args) ⇒ Object



98149
98150
98151
98152
98153
98154
98155
98156
98157
98158
98159
98160
98161
98162
98163
98164
98165
98166
98167
98168
98169
98170
98171
98172
98173
98174
98175
# File 'ext/ctp/ctp.cxx', line 98149

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_LowestPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","LowestPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowestPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->LowestPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#OpenInterest(*args) ⇒ Object



98337
98338
98339
98340
98341
98342
98343
98344
98345
98346
98347
98348
98349
98350
98351
98352
98353
98354
98355
98356
98357
98358
# File 'ext/ctp/ctp.cxx', line 98337

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_OpenInterest_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcLargeVolumeType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenInterest", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcLargeVolumeType) ((arg1)->OpenInterest);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#OpenInterest=(*args) ⇒ Object



98308
98309
98310
98311
98312
98313
98314
98315
98316
98317
98318
98319
98320
98321
98322
98323
98324
98325
98326
98327
98328
98329
98330
98331
98332
98333
98334
# File 'ext/ctp/ctp.cxx', line 98308

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_OpenInterest_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcLargeVolumeType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenInterest", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","OpenInterest", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcLargeVolumeType >(val2);
  if (arg1) (arg1)->OpenInterest = arg2;
  return Qnil;
fail:
  return Qnil;
}

#OpenPrice(*args) ⇒ Object



98072
98073
98074
98075
98076
98077
98078
98079
98080
98081
98082
98083
98084
98085
98086
98087
98088
98089
98090
98091
98092
98093
# File 'ext/ctp/ctp.cxx', line 98072

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_OpenPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->OpenPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#OpenPrice=(*args) ⇒ Object



98043
98044
98045
98046
98047
98048
98049
98050
98051
98052
98053
98054
98055
98056
98057
98058
98059
98060
98061
98062
98063
98064
98065
98066
98067
98068
98069
# File 'ext/ctp/ctp.cxx', line 98043

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_OpenPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","OpenPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","OpenPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->OpenPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreClosePrice(*args) ⇒ Object



97966
97967
97968
97969
97970
97971
97972
97973
97974
97975
97976
97977
97978
97979
97980
97981
97982
97983
97984
97985
97986
97987
# File 'ext/ctp/ctp.cxx', line 97966

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreClosePrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreClosePrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->PreClosePrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreClosePrice=(*args) ⇒ Object



97937
97938
97939
97940
97941
97942
97943
97944
97945
97946
97947
97948
97949
97950
97951
97952
97953
97954
97955
97956
97957
97958
97959
97960
97961
97962
97963
# File 'ext/ctp/ctp.cxx', line 97937

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreClosePrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreClosePrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreClosePrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->PreClosePrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreDelta(*args) ⇒ Object



98602
98603
98604
98605
98606
98607
98608
98609
98610
98611
98612
98613
98614
98615
98616
98617
98618
98619
98620
98621
98622
98623
# File 'ext/ctp/ctp.cxx', line 98602

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreDelta_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcRatioType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreDelta", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcRatioType) ((arg1)->PreDelta);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreDelta=(*args) ⇒ Object



98573
98574
98575
98576
98577
98578
98579
98580
98581
98582
98583
98584
98585
98586
98587
98588
98589
98590
98591
98592
98593
98594
98595
98596
98597
98598
98599
# File 'ext/ctp/ctp.cxx', line 98573

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreDelta_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcRatioType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreDelta", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","PreDelta", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcRatioType >(val2);
  if (arg1) (arg1)->PreDelta = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreOpenInterest(*args) ⇒ Object



98019
98020
98021
98022
98023
98024
98025
98026
98027
98028
98029
98030
98031
98032
98033
98034
98035
98036
98037
98038
98039
98040
# File 'ext/ctp/ctp.cxx', line 98019

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreOpenInterest_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcLargeVolumeType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreOpenInterest", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcLargeVolumeType) ((arg1)->PreOpenInterest);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreOpenInterest=(*args) ⇒ Object



97990
97991
97992
97993
97994
97995
97996
97997
97998
97999
98000
98001
98002
98003
98004
98005
98006
98007
98008
98009
98010
98011
98012
98013
98014
98015
98016
# File 'ext/ctp/ctp.cxx', line 97990

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreOpenInterest_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcLargeVolumeType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreOpenInterest", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","PreOpenInterest", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcLargeVolumeType >(val2);
  if (arg1) (arg1)->PreOpenInterest = arg2;
  return Qnil;
fail:
  return Qnil;
}

#PreSettlementPrice(*args) ⇒ Object



97913
97914
97915
97916
97917
97918
97919
97920
97921
97922
97923
97924
97925
97926
97927
97928
97929
97930
97931
97932
97933
97934
# File 'ext/ctp/ctp.cxx', line 97913

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreSettlementPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreSettlementPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->PreSettlementPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#PreSettlementPrice=(*args) ⇒ Object



97884
97885
97886
97887
97888
97889
97890
97891
97892
97893
97894
97895
97896
97897
97898
97899
97900
97901
97902
97903
97904
97905
97906
97907
97908
97909
97910
# File 'ext/ctp/ctp.cxx', line 97884

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_PreSettlementPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","PreSettlementPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","PreSettlementPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->PreSettlementPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#SettlementPrice(*args) ⇒ Object



98443
98444
98445
98446
98447
98448
98449
98450
98451
98452
98453
98454
98455
98456
98457
98458
98459
98460
98461
98462
98463
98464
# File 'ext/ctp/ctp.cxx', line 98443

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","SettlementPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->SettlementPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#SettlementPrice=(*args) ⇒ Object



98414
98415
98416
98417
98418
98419
98420
98421
98422
98423
98424
98425
98426
98427
98428
98429
98430
98431
98432
98433
98434
98435
98436
98437
98438
98439
98440
# File 'ext/ctp/ctp.cxx', line 98414

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","SettlementPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->SettlementPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#TradingDay(*args) ⇒ Object



97621
97622
97623
97624
97625
97626
97627
97628
97629
97630
97631
97632
97633
97634
97635
97636
97637
97638
97639
97640
97641
97642
97643
97644
97645
97646
97647
97648
# File 'ext/ctp/ctp.cxx', line 97621

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","TradingDay", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (char *) ((arg1)->TradingDay);
  {
    size_t size = SWIG_strnlen(result, 9);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#TradingDay=(*args) ⇒ Object



97591
97592
97593
97594
97595
97596
97597
97598
97599
97600
97601
97602
97603
97604
97605
97606
97607
97608
97609
97610
97611
97612
97613
97614
97615
97616
97617
97618
# File 'ext/ctp/ctp.cxx', line 97591

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[9] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","TradingDay", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 9);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char));
  else memset(arg1->TradingDay,0,9*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#Turnover(*args) ⇒ Object



98284
98285
98286
98287
98288
98289
98290
98291
98292
98293
98294
98295
98296
98297
98298
98299
98300
98301
98302
98303
98304
98305
# File 'ext/ctp/ctp.cxx', line 98284

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_Turnover_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcMoneyType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Turnover", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcMoneyType) ((arg1)->Turnover);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#Turnover=(*args) ⇒ Object



98255
98256
98257
98258
98259
98260
98261
98262
98263
98264
98265
98266
98267
98268
98269
98270
98271
98272
98273
98274
98275
98276
98277
98278
98279
98280
98281
# File 'ext/ctp/ctp.cxx', line 98255

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_Turnover_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcMoneyType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Turnover", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Turnover", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcMoneyType >(val2);
  if (arg1) (arg1)->Turnover = arg2;
  return Qnil;
fail:
  return Qnil;
}

#UpdateMillisec(*args) ⇒ Object



98768
98769
98770
98771
98772
98773
98774
98775
98776
98777
98778
98779
98780
98781
98782
98783
98784
98785
98786
98787
98788
98789
# File 'ext/ctp/ctp.cxx', line 98768

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_UpdateMillisec_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcMillisecType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateMillisec", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcMillisecType) ((arg1)->UpdateMillisec);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#UpdateMillisec=(*args) ⇒ Object



98739
98740
98741
98742
98743
98744
98745
98746
98747
98748
98749
98750
98751
98752
98753
98754
98755
98756
98757
98758
98759
98760
98761
98762
98763
98764
98765
# File 'ext/ctp/ctp.cxx', line 98739

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_UpdateMillisec_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcMillisecType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateMillisec", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMillisecType","UpdateMillisec", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcMillisecType >(val2);
  if (arg1) (arg1)->UpdateMillisec = arg2;
  return Qnil;
fail:
  return Qnil;
}

#UpdateTime(*args) ⇒ Object



98709
98710
98711
98712
98713
98714
98715
98716
98717
98718
98719
98720
98721
98722
98723
98724
98725
98726
98727
98728
98729
98730
98731
98732
98733
98734
98735
98736
# File 'ext/ctp/ctp.cxx', line 98709

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_UpdateTime_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateTime", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (char *) ((arg1)->UpdateTime);
  {
    size_t size = SWIG_strnlen(result, 9);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#UpdateTime=(*args) ⇒ Object



98679
98680
98681
98682
98683
98684
98685
98686
98687
98688
98689
98690
98691
98692
98693
98694
98695
98696
98697
98698
98699
98700
98701
98702
98703
98704
98705
98706
# File 'ext/ctp/ctp.cxx', line 98679

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_UpdateTime_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[9] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpdateTime", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 9);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","UpdateTime", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->UpdateTime,arg2,9*sizeof(char));
  else memset(arg1->UpdateTime,0,9*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#UpperLimitPrice(*args) ⇒ Object



98496
98497
98498
98499
98500
98501
98502
98503
98504
98505
98506
98507
98508
98509
98510
98511
98512
98513
98514
98515
98516
98517
# File 'ext/ctp/ctp.cxx', line 98496

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_UpperLimitPrice_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcPriceType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpperLimitPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcPriceType) ((arg1)->UpperLimitPrice);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#UpperLimitPrice=(*args) ⇒ Object



98467
98468
98469
98470
98471
98472
98473
98474
98475
98476
98477
98478
98479
98480
98481
98482
98483
98484
98485
98486
98487
98488
98489
98490
98491
98492
98493
# File 'ext/ctp/ctp.cxx', line 98467

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_UpperLimitPrice_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcPriceType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","UpperLimitPrice", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UpperLimitPrice", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->UpperLimitPrice = arg2;
  return Qnil;
fail:
  return Qnil;
}

#Volume(*args) ⇒ Object



98231
98232
98233
98234
98235
98236
98237
98238
98239
98240
98241
98242
98243
98244
98245
98246
98247
98248
98249
98250
98251
98252
# File 'ext/ctp/ctp.cxx', line 98231

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_Volume_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcVolumeType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Volume", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  result = (TThostFtdcVolumeType) ((arg1)->Volume);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#Volume=(*args) ⇒ Object



98202
98203
98204
98205
98206
98207
98208
98209
98210
98211
98212
98213
98214
98215
98216
98217
98218
98219
98220
98221
98222
98223
98224
98225
98226
98227
98228
# File 'ext/ctp/ctp.cxx', line 98202

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataField_Volume_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataField *arg1 = (CThostFtdcMarketDataField *) 0 ;
  TThostFtdcVolumeType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataField *","Volume", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataField * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcVolumeType >(val2);
  if (arg1) (arg1)->Volume = arg2;
  return Qnil;
fail:
  return Qnil;
}