Method: Ctp::CThostFtdcTradingAccountField#SpecProductFrozenMargin

Defined in:
ext/ctp/ctp.cxx

#SpecProductFrozenMargin(*args) ⇒ Object



19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
# File 'ext/ctp/ctp.cxx', line 19129

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