Method: Ctp::CThostFtdcInvestorProductGroupMarginField#Commission

Defined in:
ext/ctp/ctp.cxx

#Commission(*args) ⇒ Object



133466
133467
133468
133469
133470
133471
133472
133473
133474
133475
133476
133477
133478
133479
133480
133481
133482
133483
133484
133485
133486
133487
# File 'ext/ctp/ctp.cxx', line 133466

SWIGINTERN VALUE
_wrap_CThostFtdcInvestorProductGroupMarginField_Commission_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcInvestorProductGroupMarginField *arg1 = (CThostFtdcInvestorProductGroupMarginField *) 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_CThostFtdcInvestorProductGroupMarginField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcInvestorProductGroupMarginField *","Commission", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcInvestorProductGroupMarginField * >(argp1);
  result = (TThostFtdcMoneyType) ((arg1)->Commission);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}