Method: Ctp::CThostFtdcOptionInstrCommRateField#CloseTodayRatioByVolume=

Defined in:
ext/ctp/ctp.cxx

#CloseTodayRatioByVolume=(*args) ⇒ Object



66294
66295
66296
66297
66298
66299
66300
66301
66302
66303
66304
66305
66306
66307
66308
66309
66310
66311
66312
66313
66314
66315
66316
66317
66318
66319
66320
# File 'ext/ctp/ctp.cxx', line 66294

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrCommRateField_CloseTodayRatioByVolume_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrCommRateField *arg1 = (CThostFtdcOptionInstrCommRateField *) 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_CThostFtdcOptionInstrCommRateField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrCommRateField *","CloseTodayRatioByVolume", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrCommRateField * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CloseTodayRatioByVolume", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcRatioType >(val2);
  if (arg1) (arg1)->CloseTodayRatioByVolume = arg2;
  return Qnil;
fail:
  return Qnil;
}