Method: Ctp::CThostFtdcTransferBankToFutureReqField#TradeAmt

Defined in:
ext/ctp/ctp.cxx

#TradeAmt(*args) ⇒ Object



8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
# File 'ext/ctp/ctp.cxx', line 8154

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