Class: Ctp::CThostFtdcTraderApi
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcTraderApi
- Defined in:
- ext/ctp/ctp.cxx
Class Method Summary collapse
Instance Method Summary collapse
- #GetTradingDay(*args) ⇒ Object
- #Init(*args) ⇒ Object
- #Join(*args) ⇒ Object
- #RegisterFensUserInfo(*args) ⇒ Object
- #RegisterFront(*args) ⇒ Object
- #RegisterNameServer(*args) ⇒ Object
- #RegisterSpi(*args) ⇒ Object
- #Release(*args) ⇒ Object
- #ReqAuthenticate(*args) ⇒ Object
- #ReqCombActionInsert(*args) ⇒ Object
- #ReqExecOrderAction(*args) ⇒ Object
- #ReqExecOrderInsert(*args) ⇒ Object
- #ReqForQuoteInsert(*args) ⇒ Object
- #ReqFromBankToFutureByFuture(*args) ⇒ Object
- #ReqFromFutureToBankByFuture(*args) ⇒ Object
- #ReqOrderAction(*args) ⇒ Object
- #ReqOrderInsert(*args) ⇒ Object
- #ReqParkedOrderAction(*args) ⇒ Object
- #ReqParkedOrderInsert(*args) ⇒ Object
- #ReqQryAccountregister(*args) ⇒ Object
- #ReqQryBrokerTradingAlgos(*args) ⇒ Object
- #ReqQryBrokerTradingParams(*args) ⇒ Object
- #ReqQryCFMMCTradingAccountKey(*args) ⇒ Object
- #ReqQryCombAction(*args) ⇒ Object
- #ReqQryCombInstrumentGuard(*args) ⇒ Object
- #ReqQryContractBank(*args) ⇒ Object
- #ReqQryDepthMarketData(*args) ⇒ Object
- #ReqQryEWarrantOffset(*args) ⇒ Object
- #ReqQryExchange(*args) ⇒ Object
- #ReqQryExchangeMarginRate(*args) ⇒ Object
- #ReqQryExchangeMarginRateAdjust(*args) ⇒ Object
- #ReqQryExchangeRate(*args) ⇒ Object
- #ReqQryExecOrder(*args) ⇒ Object
- #ReqQryForQuote(*args) ⇒ Object
- #ReqQryInstrument(*args) ⇒ Object
- #ReqQryInstrumentCommissionRate(*args) ⇒ Object
- #ReqQryInstrumentMarginRate(*args) ⇒ Object
- #ReqQryInvestor(*args) ⇒ Object
- #ReqQryInvestorPosition(*args) ⇒ Object
- #ReqQryInvestorPositionCombineDetail(*args) ⇒ Object
- #ReqQryInvestorPositionDetail(*args) ⇒ Object
- #ReqQryInvestorProductGroupMargin(*args) ⇒ Object
- #ReqQryNotice(*args) ⇒ Object
- #ReqQryOptionInstrCommRate(*args) ⇒ Object
- #ReqQryOptionInstrTradeCost(*args) ⇒ Object
- #ReqQryOrder(*args) ⇒ Object
- #ReqQryParkedOrder(*args) ⇒ Object
- #ReqQryParkedOrderAction(*args) ⇒ Object
- #ReqQryProduct(*args) ⇒ Object
- #ReqQryProductExchRate(*args) ⇒ Object
- #ReqQryQuote(*args) ⇒ Object
- #ReqQrySecAgentACIDMap(*args) ⇒ Object
- #ReqQrySettlementInfo(*args) ⇒ Object
- #ReqQrySettlementInfoConfirm(*args) ⇒ Object
- #ReqQryTrade(*args) ⇒ Object
- #ReqQryTradingAccount(*args) ⇒ Object
- #ReqQryTradingCode(*args) ⇒ Object
- #ReqQryTradingNotice(*args) ⇒ Object
- #ReqQryTransferBank(*args) ⇒ Object
- #ReqQryTransferSerial(*args) ⇒ Object
- #ReqQueryBankAccountMoneyByFuture(*args) ⇒ Object
- #ReqQueryCFMMCTradingAccountToken(*args) ⇒ Object
- #ReqQueryMaxOrderVolume(*args) ⇒ Object
- #ReqQuoteAction(*args) ⇒ Object
- #ReqQuoteInsert(*args) ⇒ Object
- #ReqRemoveParkedOrder(*args) ⇒ Object
- #ReqRemoveParkedOrderAction(*args) ⇒ Object
- #ReqSettlementInfoConfirm(*args) ⇒ Object
- #ReqTradingAccountPasswordUpdate(*args) ⇒ Object
- #ReqUserLogin(*args) ⇒ Object
- #ReqUserLogout(*args) ⇒ Object
- #ReqUserPasswordUpdate(*args) ⇒ Object
- #SubscribePrivateTopic(*args) ⇒ Object
- #SubscribePublicTopic(*args) ⇒ Object
Class Method Details
.CreateFtdcTraderApi(*args, self) ⇒ Object
199141 199142 199143 199144 199145 199146 199147 199148 199149 199150 199151 199152 199153 199154 199155 199156 199157 199158 199159 199160 199161 199162 199163 199164 199165 199166 199167 199168 199169 |
# File 'ext/ctp/ctp.cxx', line 199141
SWIGINTERN VALUE _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[1];
int ii;
argc = nargs;
if (argc > 1) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_1(nargs, args, self);
}
if (argc == 1) {
int _v;
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_CThostFtdcTraderApi_CreateFtdcTraderApi__SWIG_0(nargs, args, self);
}
}
fail:
Ruby_Format_OverloadedError( argc, 1, "CThostFtdcTraderApi.CreateFtdcTraderApi",
" CThostFtdcTraderApi CThostFtdcTraderApi.CreateFtdcTraderApi(char const *pszFlowPath)\n"
" CThostFtdcTraderApi * CThostFtdcTraderApi.CreateFtdcTraderApi()\n");
return Qnil;
}
|
.GetApiVersion(*args) ⇒ Object
199172 199173 199174 199175 199176 199177 199178 199179 199180 199181 199182 199183 199184 199185 |
# File 'ext/ctp/ctp.cxx', line 199172
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_GetApiVersion(int argc, VALUE *argv, VALUE self) {
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (char *)CThostFtdcTraderApi::GetApiVersion();
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
|
Instance Method Details
#GetTradingDay(*args) ⇒ Object
199254 199255 199256 199257 199258 199259 199260 199261 199262 199263 199264 199265 199266 199267 199268 199269 199270 199271 199272 199273 199274 199275 |
# File 'ext/ctp/ctp.cxx', line 199254
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_GetTradingDay(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","GetTradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
result = (char *)(arg1)->GetTradingDay();
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
|
#Init(*args) ⇒ Object
199209 199210 199211 199212 199213 199214 199215 199216 199217 199218 199219 199220 199221 199222 199223 199224 199225 199226 199227 |
# File 'ext/ctp/ctp.cxx', line 199209
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_Init(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","Init", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
(arg1)->Init();
return Qnil;
fail:
return Qnil;
}
|
#Join(*args) ⇒ Object
199230 199231 199232 199233 199234 199235 199236 199237 199238 199239 199240 199241 199242 199243 199244 199245 199246 199247 199248 199249 199250 199251 |
# File 'ext/ctp/ctp.cxx', line 199230
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_Join(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","Join", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
result = (int)(arg1)->Join();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#RegisterFensUserInfo(*args) ⇒ Object
199342 199343 199344 199345 199346 199347 199348 199349 199350 199351 199352 199353 199354 199355 199356 199357 199358 199359 199360 199361 199362 199363 199364 199365 199366 199367 199368 |
# File 'ext/ctp/ctp.cxx', line 199342
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_RegisterFensUserInfo(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcFensUserInfoField *arg2 = (CThostFtdcFensUserInfoField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterFensUserInfo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcFensUserInfoField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcFensUserInfoField *","RegisterFensUserInfo", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcFensUserInfoField * >(argp2);
(arg1)->RegisterFensUserInfo(arg2);
return Qnil;
fail:
return Qnil;
}
|
#RegisterFront(*args) ⇒ Object
199278 199279 199280 199281 199282 199283 199284 199285 199286 199287 199288 199289 199290 199291 199292 199293 199294 199295 199296 199297 199298 199299 199300 199301 199302 199303 199304 199305 199306 199307 |
# File 'ext/ctp/ctp.cxx', line 199278
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_RegisterFront(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterFront", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","RegisterFront", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(buf2);
(arg1)->RegisterFront(arg2);
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return Qnil;
}
|
#RegisterNameServer(*args) ⇒ Object
199310 199311 199312 199313 199314 199315 199316 199317 199318 199319 199320 199321 199322 199323 199324 199325 199326 199327 199328 199329 199330 199331 199332 199333 199334 199335 199336 199337 199338 199339 |
# File 'ext/ctp/ctp.cxx', line 199310
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_RegisterNameServer(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterNameServer", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","RegisterNameServer", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(buf2);
(arg1)->RegisterNameServer(arg2);
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return Qnil;
}
|
#RegisterSpi(*args) ⇒ Object
199371 199372 199373 199374 199375 199376 199377 199378 199379 199380 199381 199382 199383 199384 199385 199386 199387 199388 199389 199390 199391 199392 199393 199394 199395 199396 199397 |
# File 'ext/ctp/ctp.cxx', line 199371
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_RegisterSpi(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcTraderSpi *arg2 = (CThostFtdcTraderSpi *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","RegisterSpi", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTraderSpi, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTraderSpi *","RegisterSpi", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcTraderSpi * >(argp2);
(arg1)->RegisterSpi(arg2);
return Qnil;
fail:
return Qnil;
}
|
#Release(*args) ⇒ Object
199188 199189 199190 199191 199192 199193 199194 199195 199196 199197 199198 199199 199200 199201 199202 199203 199204 199205 199206 |
# File 'ext/ctp/ctp.cxx', line 199188
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_Release(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","Release", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
(arg1)->Release();
return Qnil;
fail:
return Qnil;
}
|
#ReqAuthenticate(*args) ⇒ Object
199458 199459 199460 199461 199462 199463 199464 199465 199466 199467 199468 199469 199470 199471 199472 199473 199474 199475 199476 199477 199478 199479 199480 199481 199482 199483 199484 199485 199486 199487 199488 199489 199490 199491 199492 199493 199494 199495 |
# File 'ext/ctp/ctp.cxx', line 199458
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqAuthenticate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcReqAuthenticateField *arg2 = (CThostFtdcReqAuthenticateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqAuthenticate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqAuthenticateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqAuthenticateField *","ReqAuthenticate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcReqAuthenticateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqAuthenticate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqAuthenticate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqCombActionInsert(*args) ⇒ Object
200178 200179 200180 200181 200182 200183 200184 200185 200186 200187 200188 200189 200190 200191 200192 200193 200194 200195 200196 200197 200198 200199 200200 200201 200202 200203 200204 200205 200206 200207 200208 200209 200210 200211 200212 200213 200214 200215 |
# File 'ext/ctp/ctp.cxx', line 200178
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqCombActionInsert(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputCombActionField *arg2 = (CThostFtdcInputCombActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqCombActionInsert", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputCombActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputCombActionField *","ReqCombActionInsert", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputCombActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqCombActionInsert", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqCombActionInsert(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqExecOrderAction(*args) ⇒ Object
200018 200019 200020 200021 200022 200023 200024 200025 200026 200027 200028 200029 200030 200031 200032 200033 200034 200035 200036 200037 200038 200039 200040 200041 200042 200043 200044 200045 200046 200047 200048 200049 200050 200051 200052 200053 200054 200055 |
# File 'ext/ctp/ctp.cxx', line 200018
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqExecOrderAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputExecOrderActionField *arg2 = (CThostFtdcInputExecOrderActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqExecOrderAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderActionField *","ReqExecOrderAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputExecOrderActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqExecOrderAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqExecOrderAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqExecOrderInsert(*args) ⇒ Object
199978 199979 199980 199981 199982 199983 199984 199985 199986 199987 199988 199989 199990 199991 199992 199993 199994 199995 199996 199997 199998 199999 200000 200001 200002 200003 200004 200005 200006 200007 200008 200009 200010 200011 200012 200013 200014 200015 |
# File 'ext/ctp/ctp.cxx', line 199978
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqExecOrderInsert(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputExecOrderField *arg2 = (CThostFtdcInputExecOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqExecOrderInsert", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputExecOrderField *","ReqExecOrderInsert", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputExecOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqExecOrderInsert", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqExecOrderInsert(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqForQuoteInsert(*args) ⇒ Object
200058 200059 200060 200061 200062 200063 200064 200065 200066 200067 200068 200069 200070 200071 200072 200073 200074 200075 200076 200077 200078 200079 200080 200081 200082 200083 200084 200085 200086 200087 200088 200089 200090 200091 200092 200093 200094 200095 |
# File 'ext/ctp/ctp.cxx', line 200058
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqForQuoteInsert(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputForQuoteField *arg2 = (CThostFtdcInputForQuoteField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqForQuoteInsert", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputForQuoteField *","ReqForQuoteInsert", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputForQuoteField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqForQuoteInsert", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqForQuoteInsert(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqFromBankToFutureByFuture(*args) ⇒ Object
201898 201899 201900 201901 201902 201903 201904 201905 201906 201907 201908 201909 201910 201911 201912 201913 201914 201915 201916 201917 201918 201919 201920 201921 201922 201923 201924 201925 201926 201927 201928 201929 201930 201931 201932 201933 201934 201935 |
# File 'ext/ctp/ctp.cxx', line 201898
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqFromBankToFutureByFuture(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqFromBankToFutureByFuture", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","ReqFromBankToFutureByFuture", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqFromBankToFutureByFuture", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqFromBankToFutureByFuture(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqFromFutureToBankByFuture(*args) ⇒ Object
201938 201939 201940 201941 201942 201943 201944 201945 201946 201947 201948 201949 201950 201951 201952 201953 201954 201955 201956 201957 201958 201959 201960 201961 201962 201963 201964 201965 201966 201967 201968 201969 201970 201971 201972 201973 201974 201975 |
# File 'ext/ctp/ctp.cxx', line 201938
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqFromFutureToBankByFuture(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcReqTransferField *arg2 = (CThostFtdcReqTransferField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqFromFutureToBankByFuture", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqTransferField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqTransferField *","ReqFromFutureToBankByFuture", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcReqTransferField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqFromFutureToBankByFuture", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqFromFutureToBankByFuture(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqOrderAction(*args) ⇒ Object
199778 199779 199780 199781 199782 199783 199784 199785 199786 199787 199788 199789 199790 199791 199792 199793 199794 199795 199796 199797 199798 199799 199800 199801 199802 199803 199804 199805 199806 199807 199808 199809 199810 199811 199812 199813 199814 199815 |
# File 'ext/ctp/ctp.cxx', line 199778
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqOrderAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputOrderActionField *arg2 = (CThostFtdcInputOrderActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqOrderAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderActionField *","ReqOrderAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputOrderActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqOrderAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqOrderAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqOrderInsert(*args) ⇒ Object
199658 199659 199660 199661 199662 199663 199664 199665 199666 199667 199668 199669 199670 199671 199672 199673 199674 199675 199676 199677 199678 199679 199680 199681 199682 199683 199684 199685 199686 199687 199688 199689 199690 199691 199692 199693 199694 199695 |
# File 'ext/ctp/ctp.cxx', line 199658
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqOrderInsert(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputOrderField *arg2 = (CThostFtdcInputOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqOrderInsert", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputOrderField *","ReqOrderInsert", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqOrderInsert", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqOrderInsert(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqParkedOrderAction(*args) ⇒ Object
199738 199739 199740 199741 199742 199743 199744 199745 199746 199747 199748 199749 199750 199751 199752 199753 199754 199755 199756 199757 199758 199759 199760 199761 199762 199763 199764 199765 199766 199767 199768 199769 199770 199771 199772 199773 199774 199775 |
# File 'ext/ctp/ctp.cxx', line 199738
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqParkedOrderAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcParkedOrderActionField *arg2 = (CThostFtdcParkedOrderActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqParkedOrderAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderActionField *","ReqParkedOrderAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcParkedOrderActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqParkedOrderAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqParkedOrderAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqParkedOrderInsert(*args) ⇒ Object
199698 199699 199700 199701 199702 199703 199704 199705 199706 199707 199708 199709 199710 199711 199712 199713 199714 199715 199716 199717 199718 199719 199720 199721 199722 199723 199724 199725 199726 199727 199728 199729 199730 199731 199732 199733 199734 199735 |
# File 'ext/ctp/ctp.cxx', line 199698
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqParkedOrderInsert(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcParkedOrderField *arg2 = (CThostFtdcParkedOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqParkedOrderInsert", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcParkedOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcParkedOrderField *","ReqParkedOrderInsert", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcParkedOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqParkedOrderInsert", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqParkedOrderInsert(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryAccountregister(*args) ⇒ Object
201578 201579 201580 201581 201582 201583 201584 201585 201586 201587 201588 201589 201590 201591 201592 201593 201594 201595 201596 201597 201598 201599 201600 201601 201602 201603 201604 201605 201606 201607 201608 201609 201610 201611 201612 201613 201614 201615 |
# File 'ext/ctp/ctp.cxx', line 201578
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryAccountregister(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryAccountregisterField *arg2 = (CThostFtdcQryAccountregisterField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryAccountregister", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryAccountregisterField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryAccountregisterField *","ReqQryAccountregister", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryAccountregisterField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryAccountregister", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryAccountregister(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryBrokerTradingAlgos(*args) ⇒ Object
201818 201819 201820 201821 201822 201823 201824 201825 201826 201827 201828 201829 201830 201831 201832 201833 201834 201835 201836 201837 201838 201839 201840 201841 201842 201843 201844 201845 201846 201847 201848 201849 201850 201851 201852 201853 201854 201855 |
# File 'ext/ctp/ctp.cxx', line 201818
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryBrokerTradingAlgos(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryBrokerTradingAlgosField *arg2 = (CThostFtdcQryBrokerTradingAlgosField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryBrokerTradingAlgos", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryBrokerTradingAlgosField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingAlgosField *","ReqQryBrokerTradingAlgos", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryBrokerTradingAlgosField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryBrokerTradingAlgos", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryBrokerTradingAlgos(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryBrokerTradingParams(*args) ⇒ Object
201778 201779 201780 201781 201782 201783 201784 201785 201786 201787 201788 201789 201790 201791 201792 201793 201794 201795 201796 201797 201798 201799 201800 201801 201802 201803 201804 201805 201806 201807 201808 201809 201810 201811 201812 201813 201814 201815 |
# File 'ext/ctp/ctp.cxx', line 201778
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryBrokerTradingParams(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryBrokerTradingParamsField *arg2 = (CThostFtdcQryBrokerTradingParamsField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryBrokerTradingParams", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryBrokerTradingParamsField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryBrokerTradingParamsField *","ReqQryBrokerTradingParams", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryBrokerTradingParamsField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryBrokerTradingParams", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryBrokerTradingParams(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryCFMMCTradingAccountKey(*args) ⇒ Object
200938 200939 200940 200941 200942 200943 200944 200945 200946 200947 200948 200949 200950 200951 200952 200953 200954 200955 200956 200957 200958 200959 200960 200961 200962 200963 200964 200965 200966 200967 200968 200969 200970 200971 200972 200973 200974 200975 |
# File 'ext/ctp/ctp.cxx', line 200938
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryCFMMCTradingAccountKey(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryCFMMCTradingAccountKeyField *arg2 = (CThostFtdcQryCFMMCTradingAccountKeyField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryCFMMCTradingAccountKey", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryCFMMCTradingAccountKeyField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryCFMMCTradingAccountKeyField *","ReqQryCFMMCTradingAccountKey", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryCFMMCTradingAccountKeyField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryCFMMCTradingAccountKey", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryCFMMCTradingAccountKey(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryCombAction(*args) ⇒ Object
201498 201499 201500 201501 201502 201503 201504 201505 201506 201507 201508 201509 201510 201511 201512 201513 201514 201515 201516 201517 201518 201519 201520 201521 201522 201523 201524 201525 201526 201527 201528 201529 201530 201531 201532 201533 201534 201535 |
# File 'ext/ctp/ctp.cxx', line 201498
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryCombAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryCombActionField *arg2 = (CThostFtdcQryCombActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryCombAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryCombActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryCombActionField *","ReqQryCombAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryCombActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryCombAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryCombAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryCombInstrumentGuard(*args) ⇒ Object
201458 201459 201460 201461 201462 201463 201464 201465 201466 201467 201468 201469 201470 201471 201472 201473 201474 201475 201476 201477 201478 201479 201480 201481 201482 201483 201484 201485 201486 201487 201488 201489 201490 201491 201492 201493 201494 201495 |
# File 'ext/ctp/ctp.cxx', line 201458
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryCombInstrumentGuard(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryCombInstrumentGuardField *arg2 = (CThostFtdcQryCombInstrumentGuardField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryCombInstrumentGuard", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryCombInstrumentGuardField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryCombInstrumentGuardField *","ReqQryCombInstrumentGuard", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryCombInstrumentGuardField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryCombInstrumentGuard", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryCombInstrumentGuard(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryContractBank(*args) ⇒ Object
201618 201619 201620 201621 201622 201623 201624 201625 201626 201627 201628 201629 201630 201631 201632 201633 201634 201635 201636 201637 201638 201639 201640 201641 201642 201643 201644 201645 201646 201647 201648 201649 201650 201651 201652 201653 201654 201655 |
# File 'ext/ctp/ctp.cxx', line 201618
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryContractBank(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryContractBankField *arg2 = (CThostFtdcQryContractBankField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryContractBank", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryContractBankField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryContractBankField *","ReqQryContractBank", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryContractBankField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryContractBank", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryContractBank(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryDepthMarketData(*args) ⇒ Object
200658 200659 200660 200661 200662 200663 200664 200665 200666 200667 200668 200669 200670 200671 200672 200673 200674 200675 200676 200677 200678 200679 200680 200681 200682 200683 200684 200685 200686 200687 200688 200689 200690 200691 200692 200693 200694 200695 |
# File 'ext/ctp/ctp.cxx', line 200658
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryDepthMarketData(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryDepthMarketDataField *arg2 = (CThostFtdcQryDepthMarketDataField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryDepthMarketData", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryDepthMarketDataField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryDepthMarketDataField *","ReqQryDepthMarketData", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryDepthMarketDataField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryDepthMarketData", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryDepthMarketData(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryEWarrantOffset(*args) ⇒ Object
200978 200979 200980 200981 200982 200983 200984 200985 200986 200987 200988 200989 200990 200991 200992 200993 200994 200995 200996 200997 200998 200999 201000 201001 201002 201003 201004 201005 201006 201007 201008 201009 201010 201011 201012 201013 201014 201015 |
# File 'ext/ctp/ctp.cxx', line 200978
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryEWarrantOffset(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryEWarrantOffsetField *arg2 = (CThostFtdcQryEWarrantOffsetField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryEWarrantOffset", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryEWarrantOffsetField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryEWarrantOffsetField *","ReqQryEWarrantOffset", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryEWarrantOffsetField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryEWarrantOffset", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryEWarrantOffset(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryExchange(*args) ⇒ Object
200538 200539 200540 200541 200542 200543 200544 200545 200546 200547 200548 200549 200550 200551 200552 200553 200554 200555 200556 200557 200558 200559 200560 200561 200562 200563 200564 200565 200566 200567 200568 200569 200570 200571 200572 200573 200574 200575 |
# File 'ext/ctp/ctp.cxx', line 200538
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryExchange(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryExchangeField *arg2 = (CThostFtdcQryExchangeField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeField *","ReqQryExchange", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryExchangeField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchange", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryExchange(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryExchangeMarginRate(*args) ⇒ Object
201058 201059 201060 201061 201062 201063 201064 201065 201066 201067 201068 201069 201070 201071 201072 201073 201074 201075 201076 201077 201078 201079 201080 201081 201082 201083 201084 201085 201086 201087 201088 201089 201090 201091 201092 201093 201094 201095 |
# File 'ext/ctp/ctp.cxx', line 201058
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryExchangeMarginRate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryExchangeMarginRateField *arg2 = (CThostFtdcQryExchangeMarginRateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchangeMarginRate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateField *","ReqQryExchangeMarginRate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryExchangeMarginRateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchangeMarginRate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryExchangeMarginRate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryExchangeMarginRateAdjust(*args) ⇒ Object
201098 201099 201100 201101 201102 201103 201104 201105 201106 201107 201108 201109 201110 201111 201112 201113 201114 201115 201116 201117 201118 201119 201120 201121 201122 201123 201124 201125 201126 201127 201128 201129 201130 201131 201132 201133 201134 201135 |
# File 'ext/ctp/ctp.cxx', line 201098
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryExchangeMarginRateAdjust(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryExchangeMarginRateAdjustField *arg2 = (CThostFtdcQryExchangeMarginRateAdjustField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchangeMarginRateAdjust", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeMarginRateAdjustField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeMarginRateAdjustField *","ReqQryExchangeMarginRateAdjust", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryExchangeMarginRateAdjustField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchangeMarginRateAdjust", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryExchangeMarginRateAdjust(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryExchangeRate(*args) ⇒ Object
201138 201139 201140 201141 201142 201143 201144 201145 201146 201147 201148 201149 201150 201151 201152 201153 201154 201155 201156 201157 201158 201159 201160 201161 201162 201163 201164 201165 201166 201167 201168 201169 201170 201171 201172 201173 201174 201175 |
# File 'ext/ctp/ctp.cxx', line 201138
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryExchangeRate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryExchangeRateField *arg2 = (CThostFtdcQryExchangeRateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExchangeRate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExchangeRateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExchangeRateField *","ReqQryExchangeRate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryExchangeRateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExchangeRate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryExchangeRate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryExecOrder(*args) ⇒ Object
201338 201339 201340 201341 201342 201343 201344 201345 201346 201347 201348 201349 201350 201351 201352 201353 201354 201355 201356 201357 201358 201359 201360 201361 201362 201363 201364 201365 201366 201367 201368 201369 201370 201371 201372 201373 201374 201375 |
# File 'ext/ctp/ctp.cxx', line 201338
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryExecOrder(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryExecOrderField *arg2 = (CThostFtdcQryExecOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryExecOrder", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryExecOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryExecOrderField *","ReqQryExecOrder", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryExecOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryExecOrder", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryExecOrder(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryForQuote(*args) ⇒ Object
201378 201379 201380 201381 201382 201383 201384 201385 201386 201387 201388 201389 201390 201391 201392 201393 201394 201395 201396 201397 201398 201399 201400 201401 201402 201403 201404 201405 201406 201407 201408 201409 201410 201411 201412 201413 201414 201415 |
# File 'ext/ctp/ctp.cxx', line 201378
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryForQuote(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryForQuoteField *arg2 = (CThostFtdcQryForQuoteField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryForQuote", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryForQuoteField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryForQuoteField *","ReqQryForQuote", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryForQuoteField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryForQuote", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryForQuote(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInstrument(*args) ⇒ Object
200618 200619 200620 200621 200622 200623 200624 200625 200626 200627 200628 200629 200630 200631 200632 200633 200634 200635 200636 200637 200638 200639 200640 200641 200642 200643 200644 200645 200646 200647 200648 200649 200650 200651 200652 200653 200654 200655 |
# File 'ext/ctp/ctp.cxx', line 200618
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInstrument(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInstrumentField *arg2 = (CThostFtdcQryInstrumentField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInstrument", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentField *","ReqQryInstrument", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInstrumentField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInstrument", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInstrument(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInstrumentCommissionRate(*args) ⇒ Object
200498 200499 200500 200501 200502 200503 200504 200505 200506 200507 200508 200509 200510 200511 200512 200513 200514 200515 200516 200517 200518 200519 200520 200521 200522 200523 200524 200525 200526 200527 200528 200529 200530 200531 200532 200533 200534 200535 |
# File 'ext/ctp/ctp.cxx', line 200498
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInstrumentCommissionRate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInstrumentCommissionRateField *arg2 = (CThostFtdcQryInstrumentCommissionRateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInstrumentCommissionRate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInstrumentCommissionRateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentCommissionRateField *","ReqQryInstrumentCommissionRate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInstrumentCommissionRateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInstrumentCommissionRate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInstrumentCommissionRate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInstrumentMarginRate(*args) ⇒ Object
200458 200459 200460 200461 200462 200463 200464 200465 200466 200467 200468 200469 200470 200471 200472 200473 200474 200475 200476 200477 200478 200479 200480 200481 200482 200483 200484 200485 200486 200487 200488 200489 200490 200491 200492 200493 200494 200495 |
# File 'ext/ctp/ctp.cxx', line 200458
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInstrumentMarginRate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInstrumentMarginRateField *arg2 = (CThostFtdcQryInstrumentMarginRateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInstrumentMarginRate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInstrumentMarginRateField *","ReqQryInstrumentMarginRate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInstrumentMarginRateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInstrumentMarginRate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInstrumentMarginRate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInvestor(*args) ⇒ Object
200378 200379 200380 200381 200382 200383 200384 200385 200386 200387 200388 200389 200390 200391 200392 200393 200394 200395 200396 200397 200398 200399 200400 200401 200402 200403 200404 200405 200406 200407 200408 200409 200410 200411 200412 200413 200414 200415 |
# File 'ext/ctp/ctp.cxx', line 200378
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInvestor(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInvestorField *arg2 = (CThostFtdcQryInvestorField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestor", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorField *","ReqQryInvestor", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInvestorField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestor", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInvestor(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInvestorPosition(*args) ⇒ Object
200298 200299 200300 200301 200302 200303 200304 200305 200306 200307 200308 200309 200310 200311 200312 200313 200314 200315 200316 200317 200318 200319 200320 200321 200322 200323 200324 200325 200326 200327 200328 200329 200330 200331 200332 200333 200334 200335 |
# File 'ext/ctp/ctp.cxx', line 200298
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInvestorPosition(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInvestorPositionField *arg2 = (CThostFtdcQryInvestorPositionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorPosition", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorPositionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionField *","ReqQryInvestorPosition", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInvestorPositionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorPosition", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInvestorPosition(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInvestorPositionCombineDetail(*args) ⇒ Object
200898 200899 200900 200901 200902 200903 200904 200905 200906 200907 200908 200909 200910 200911 200912 200913 200914 200915 200916 200917 200918 200919 200920 200921 200922 200923 200924 200925 200926 200927 200928 200929 200930 200931 200932 200933 200934 200935 |
# File 'ext/ctp/ctp.cxx', line 200898
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInvestorPositionCombineDetail(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInvestorPositionCombineDetailField *arg2 = (CThostFtdcQryInvestorPositionCombineDetailField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorPositionCombineDetail", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorPositionCombineDetailField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionCombineDetailField *","ReqQryInvestorPositionCombineDetail", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInvestorPositionCombineDetailField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorPositionCombineDetail", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInvestorPositionCombineDetail(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInvestorPositionDetail(*args) ⇒ Object
200778 200779 200780 200781 200782 200783 200784 200785 200786 200787 200788 200789 200790 200791 200792 200793 200794 200795 200796 200797 200798 200799 200800 200801 200802 200803 200804 200805 200806 200807 200808 200809 200810 200811 200812 200813 200814 200815 |
# File 'ext/ctp/ctp.cxx', line 200778
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInvestorPositionDetail(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInvestorPositionDetailField *arg2 = (CThostFtdcQryInvestorPositionDetailField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorPositionDetail", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorPositionDetailField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorPositionDetailField *","ReqQryInvestorPositionDetail", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInvestorPositionDetailField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorPositionDetail", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInvestorPositionDetail(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryInvestorProductGroupMargin(*args) ⇒ Object
201018 201019 201020 201021 201022 201023 201024 201025 201026 201027 201028 201029 201030 201031 201032 201033 201034 201035 201036 201037 201038 201039 201040 201041 201042 201043 201044 201045 201046 201047 201048 201049 201050 201051 201052 201053 201054 201055 |
# File 'ext/ctp/ctp.cxx', line 201018
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryInvestorProductGroupMargin(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryInvestorProductGroupMarginField *arg2 = (CThostFtdcQryInvestorProductGroupMarginField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryInvestorProductGroupMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryInvestorProductGroupMarginField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryInvestorProductGroupMarginField *","ReqQryInvestorProductGroupMargin", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryInvestorProductGroupMarginField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryInvestorProductGroupMargin", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryInvestorProductGroupMargin(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryNotice(*args) ⇒ Object
200818 200819 200820 200821 200822 200823 200824 200825 200826 200827 200828 200829 200830 200831 200832 200833 200834 200835 200836 200837 200838 200839 200840 200841 200842 200843 200844 200845 200846 200847 200848 200849 200850 200851 200852 200853 200854 200855 |
# File 'ext/ctp/ctp.cxx', line 200818
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryNotice(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryNoticeField *arg2 = (CThostFtdcQryNoticeField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryNotice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryNoticeField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryNoticeField *","ReqQryNotice", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryNoticeField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryNotice", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryNotice(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryOptionInstrCommRate(*args) ⇒ Object
201298 201299 201300 201301 201302 201303 201304 201305 201306 201307 201308 201309 201310 201311 201312 201313 201314 201315 201316 201317 201318 201319 201320 201321 201322 201323 201324 201325 201326 201327 201328 201329 201330 201331 201332 201333 201334 201335 |
# File 'ext/ctp/ctp.cxx', line 201298
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryOptionInstrCommRate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryOptionInstrCommRateField *arg2 = (CThostFtdcQryOptionInstrCommRateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryOptionInstrCommRate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryOptionInstrCommRateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrCommRateField *","ReqQryOptionInstrCommRate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryOptionInstrCommRateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryOptionInstrCommRate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryOptionInstrCommRate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryOptionInstrTradeCost(*args) ⇒ Object
201258 201259 201260 201261 201262 201263 201264 201265 201266 201267 201268 201269 201270 201271 201272 201273 201274 201275 201276 201277 201278 201279 201280 201281 201282 201283 201284 201285 201286 201287 201288 201289 201290 201291 201292 201293 201294 201295 |
# File 'ext/ctp/ctp.cxx', line 201258
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryOptionInstrTradeCost(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryOptionInstrTradeCostField *arg2 = (CThostFtdcQryOptionInstrTradeCostField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryOptionInstrTradeCost", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryOptionInstrTradeCostField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryOptionInstrTradeCostField *","ReqQryOptionInstrTradeCost", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryOptionInstrTradeCostField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryOptionInstrTradeCost", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryOptionInstrTradeCost(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryOrder(*args) ⇒ Object
200218 200219 200220 200221 200222 200223 200224 200225 200226 200227 200228 200229 200230 200231 200232 200233 200234 200235 200236 200237 200238 200239 200240 200241 200242 200243 200244 200245 200246 200247 200248 200249 200250 200251 200252 200253 200254 200255 |
# File 'ext/ctp/ctp.cxx', line 200218
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryOrder(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryOrderField *arg2 = (CThostFtdcQryOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryOrder", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryOrderField *","ReqQryOrder", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryOrder", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryOrder(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryParkedOrder(*args) ⇒ Object
201658 201659 201660 201661 201662 201663 201664 201665 201666 201667 201668 201669 201670 201671 201672 201673 201674 201675 201676 201677 201678 201679 201680 201681 201682 201683 201684 201685 201686 201687 201688 201689 201690 201691 201692 201693 201694 201695 |
# File 'ext/ctp/ctp.cxx', line 201658
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryParkedOrder(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryParkedOrderField *arg2 = (CThostFtdcQryParkedOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryParkedOrder", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryParkedOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderField *","ReqQryParkedOrder", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryParkedOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryParkedOrder", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryParkedOrder(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryParkedOrderAction(*args) ⇒ Object
201698 201699 201700 201701 201702 201703 201704 201705 201706 201707 201708 201709 201710 201711 201712 201713 201714 201715 201716 201717 201718 201719 201720 201721 201722 201723 201724 201725 201726 201727 201728 201729 201730 201731 201732 201733 201734 201735 |
# File 'ext/ctp/ctp.cxx', line 201698
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryParkedOrderAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryParkedOrderActionField *arg2 = (CThostFtdcQryParkedOrderActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryParkedOrderAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryParkedOrderActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryParkedOrderActionField *","ReqQryParkedOrderAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryParkedOrderActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryParkedOrderAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryParkedOrderAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryProduct(*args) ⇒ Object
200578 200579 200580 200581 200582 200583 200584 200585 200586 200587 200588 200589 200590 200591 200592 200593 200594 200595 200596 200597 200598 200599 200600 200601 200602 200603 200604 200605 200606 200607 200608 200609 200610 200611 200612 200613 200614 200615 |
# File 'ext/ctp/ctp.cxx', line 200578
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryProduct(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryProductField *arg2 = (CThostFtdcQryProductField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryProduct", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryProductField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryProductField *","ReqQryProduct", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryProductField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryProduct", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryProduct(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryProductExchRate(*args) ⇒ Object
201218 201219 201220 201221 201222 201223 201224 201225 201226 201227 201228 201229 201230 201231 201232 201233 201234 201235 201236 201237 201238 201239 201240 201241 201242 201243 201244 201245 201246 201247 201248 201249 201250 201251 201252 201253 201254 201255 |
# File 'ext/ctp/ctp.cxx', line 201218
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryProductExchRate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryProductExchRateField *arg2 = (CThostFtdcQryProductExchRateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryProductExchRate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryProductExchRateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryProductExchRateField *","ReqQryProductExchRate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryProductExchRateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryProductExchRate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryProductExchRate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryQuote(*args) ⇒ Object
201418 201419 201420 201421 201422 201423 201424 201425 201426 201427 201428 201429 201430 201431 201432 201433 201434 201435 201436 201437 201438 201439 201440 201441 201442 201443 201444 201445 201446 201447 201448 201449 201450 201451 201452 201453 201454 201455 |
# File 'ext/ctp/ctp.cxx', line 201418
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryQuote(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryQuoteField *arg2 = (CThostFtdcQryQuoteField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryQuote", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryQuoteField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryQuoteField *","ReqQryQuote", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryQuoteField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryQuote", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryQuote(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQrySecAgentACIDMap(*args) ⇒ Object
201178 201179 201180 201181 201182 201183 201184 201185 201186 201187 201188 201189 201190 201191 201192 201193 201194 201195 201196 201197 201198 201199 201200 201201 201202 201203 201204 201205 201206 201207 201208 201209 201210 201211 201212 201213 201214 201215 |
# File 'ext/ctp/ctp.cxx', line 201178
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQrySecAgentACIDMap(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQrySecAgentACIDMapField *arg2 = (CThostFtdcQrySecAgentACIDMapField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQrySecAgentACIDMap", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQrySecAgentACIDMapField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQrySecAgentACIDMapField *","ReqQrySecAgentACIDMap", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQrySecAgentACIDMapField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQrySecAgentACIDMap", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQrySecAgentACIDMap(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQrySettlementInfo(*args) ⇒ Object
200698 200699 200700 200701 200702 200703 200704 200705 200706 200707 200708 200709 200710 200711 200712 200713 200714 200715 200716 200717 200718 200719 200720 200721 200722 200723 200724 200725 200726 200727 200728 200729 200730 200731 200732 200733 200734 200735 |
# File 'ext/ctp/ctp.cxx', line 200698
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQrySettlementInfo(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQrySettlementInfoField *arg2 = (CThostFtdcQrySettlementInfoField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQrySettlementInfo", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQrySettlementInfoField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoField *","ReqQrySettlementInfo", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQrySettlementInfoField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQrySettlementInfo", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQrySettlementInfo(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQrySettlementInfoConfirm(*args) ⇒ Object
200858 200859 200860 200861 200862 200863 200864 200865 200866 200867 200868 200869 200870 200871 200872 200873 200874 200875 200876 200877 200878 200879 200880 200881 200882 200883 200884 200885 200886 200887 200888 200889 200890 200891 200892 200893 200894 200895 |
# File 'ext/ctp/ctp.cxx', line 200858
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQrySettlementInfoConfirm(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQrySettlementInfoConfirmField *arg2 = (CThostFtdcQrySettlementInfoConfirmField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQrySettlementInfoConfirm", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQrySettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQrySettlementInfoConfirmField *","ReqQrySettlementInfoConfirm", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQrySettlementInfoConfirmField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQrySettlementInfoConfirm", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQrySettlementInfoConfirm(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryTrade(*args) ⇒ Object
200258 200259 200260 200261 200262 200263 200264 200265 200266 200267 200268 200269 200270 200271 200272 200273 200274 200275 200276 200277 200278 200279 200280 200281 200282 200283 200284 200285 200286 200287 200288 200289 200290 200291 200292 200293 200294 200295 |
# File 'ext/ctp/ctp.cxx', line 200258
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryTrade(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryTradeField *arg2 = (CThostFtdcQryTradeField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTrade", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradeField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradeField *","ReqQryTrade", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryTradeField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTrade", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryTrade(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryTradingAccount(*args) ⇒ Object
200338 200339 200340 200341 200342 200343 200344 200345 200346 200347 200348 200349 200350 200351 200352 200353 200354 200355 200356 200357 200358 200359 200360 200361 200362 200363 200364 200365 200366 200367 200368 200369 200370 200371 200372 200373 200374 200375 |
# File 'ext/ctp/ctp.cxx', line 200338
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryTradingAccount(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryTradingAccountField *arg2 = (CThostFtdcQryTradingAccountField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTradingAccount", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradingAccountField *","ReqQryTradingAccount", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryTradingAccountField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTradingAccount", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryTradingAccount(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryTradingCode(*args) ⇒ Object
200418 200419 200420 200421 200422 200423 200424 200425 200426 200427 200428 200429 200430 200431 200432 200433 200434 200435 200436 200437 200438 200439 200440 200441 200442 200443 200444 200445 200446 200447 200448 200449 200450 200451 200452 200453 200454 200455 |
# File 'ext/ctp/ctp.cxx', line 200418
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryTradingCode(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryTradingCodeField *arg2 = (CThostFtdcQryTradingCodeField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTradingCode", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradingCodeField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradingCodeField *","ReqQryTradingCode", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryTradingCodeField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTradingCode", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryTradingCode(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryTradingNotice(*args) ⇒ Object
201738 201739 201740 201741 201742 201743 201744 201745 201746 201747 201748 201749 201750 201751 201752 201753 201754 201755 201756 201757 201758 201759 201760 201761 201762 201763 201764 201765 201766 201767 201768 201769 201770 201771 201772 201773 201774 201775 |
# File 'ext/ctp/ctp.cxx', line 201738
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryTradingNotice(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryTradingNoticeField *arg2 = (CThostFtdcQryTradingNoticeField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTradingNotice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTradingNoticeField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTradingNoticeField *","ReqQryTradingNotice", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryTradingNoticeField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTradingNotice", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryTradingNotice(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryTransferBank(*args) ⇒ Object
200738 200739 200740 200741 200742 200743 200744 200745 200746 200747 200748 200749 200750 200751 200752 200753 200754 200755 200756 200757 200758 200759 200760 200761 200762 200763 200764 200765 200766 200767 200768 200769 200770 200771 200772 200773 200774 200775 |
# File 'ext/ctp/ctp.cxx', line 200738
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryTransferBank(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryTransferBankField *arg2 = (CThostFtdcQryTransferBankField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTransferBank", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTransferBankField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTransferBankField *","ReqQryTransferBank", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryTransferBankField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTransferBank", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryTransferBank(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQryTransferSerial(*args) ⇒ Object
201538 201539 201540 201541 201542 201543 201544 201545 201546 201547 201548 201549 201550 201551 201552 201553 201554 201555 201556 201557 201558 201559 201560 201561 201562 201563 201564 201565 201566 201567 201568 201569 201570 201571 201572 201573 201574 201575 |
# File 'ext/ctp/ctp.cxx', line 201538
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQryTransferSerial(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQryTransferSerialField *arg2 = (CThostFtdcQryTransferSerialField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQryTransferSerial", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQryTransferSerialField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQryTransferSerialField *","ReqQryTransferSerial", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQryTransferSerialField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQryTransferSerial", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQryTransferSerial(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQueryBankAccountMoneyByFuture(*args) ⇒ Object
201978 201979 201980 201981 201982 201983 201984 201985 201986 201987 201988 201989 201990 201991 201992 201993 201994 201995 201996 201997 201998 201999 202000 202001 202002 202003 202004 202005 202006 202007 202008 202009 202010 202011 202012 202013 202014 202015 |
# File 'ext/ctp/ctp.cxx', line 201978
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQueryBankAccountMoneyByFuture(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcReqQueryAccountField *arg2 = (CThostFtdcReqQueryAccountField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQueryBankAccountMoneyByFuture", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqQueryAccountField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqQueryAccountField *","ReqQueryBankAccountMoneyByFuture", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcReqQueryAccountField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQueryBankAccountMoneyByFuture", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQueryBankAccountMoneyByFuture(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQueryCFMMCTradingAccountToken(*args) ⇒ Object
201858 201859 201860 201861 201862 201863 201864 201865 201866 201867 201868 201869 201870 201871 201872 201873 201874 201875 201876 201877 201878 201879 201880 201881 201882 201883 201884 201885 201886 201887 201888 201889 201890 201891 201892 201893 201894 201895 |
# File 'ext/ctp/ctp.cxx', line 201858
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQueryCFMMCTradingAccountToken(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQueryCFMMCTradingAccountTokenField *arg2 = (CThostFtdcQueryCFMMCTradingAccountTokenField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQueryCFMMCTradingAccountToken", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQueryCFMMCTradingAccountTokenField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQueryCFMMCTradingAccountTokenField *","ReqQueryCFMMCTradingAccountToken", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQueryCFMMCTradingAccountTokenField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQueryCFMMCTradingAccountToken", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQueryCFMMCTradingAccountToken(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQueryMaxOrderVolume(*args) ⇒ Object
199818 199819 199820 199821 199822 199823 199824 199825 199826 199827 199828 199829 199830 199831 199832 199833 199834 199835 199836 199837 199838 199839 199840 199841 199842 199843 199844 199845 199846 199847 199848 199849 199850 199851 199852 199853 199854 199855 |
# File 'ext/ctp/ctp.cxx', line 199818
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQueryMaxOrderVolume(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcQueryMaxOrderVolumeField *arg2 = (CThostFtdcQueryMaxOrderVolumeField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQueryMaxOrderVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcQueryMaxOrderVolumeField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcQueryMaxOrderVolumeField *","ReqQueryMaxOrderVolume", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcQueryMaxOrderVolumeField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQueryMaxOrderVolume", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQueryMaxOrderVolume(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQuoteAction(*args) ⇒ Object
200138 200139 200140 200141 200142 200143 200144 200145 200146 200147 200148 200149 200150 200151 200152 200153 200154 200155 200156 200157 200158 200159 200160 200161 200162 200163 200164 200165 200166 200167 200168 200169 200170 200171 200172 200173 200174 200175 |
# File 'ext/ctp/ctp.cxx', line 200138
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQuoteAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputQuoteActionField *arg2 = (CThostFtdcInputQuoteActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQuoteAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteActionField *","ReqQuoteAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputQuoteActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQuoteAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQuoteAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqQuoteInsert(*args) ⇒ Object
200098 200099 200100 200101 200102 200103 200104 200105 200106 200107 200108 200109 200110 200111 200112 200113 200114 200115 200116 200117 200118 200119 200120 200121 200122 200123 200124 200125 200126 200127 200128 200129 200130 200131 200132 200133 200134 200135 |
# File 'ext/ctp/ctp.cxx', line 200098
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqQuoteInsert(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcInputQuoteField *arg2 = (CThostFtdcInputQuoteField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqQuoteInsert", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcInputQuoteField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcInputQuoteField *","ReqQuoteInsert", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcInputQuoteField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqQuoteInsert", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqQuoteInsert(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqRemoveParkedOrder(*args) ⇒ Object
199898 199899 199900 199901 199902 199903 199904 199905 199906 199907 199908 199909 199910 199911 199912 199913 199914 199915 199916 199917 199918 199919 199920 199921 199922 199923 199924 199925 199926 199927 199928 199929 199930 199931 199932 199933 199934 199935 |
# File 'ext/ctp/ctp.cxx', line 199898
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqRemoveParkedOrder(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcRemoveParkedOrderField *arg2 = (CThostFtdcRemoveParkedOrderField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqRemoveParkedOrder", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRemoveParkedOrderField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderField *","ReqRemoveParkedOrder", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcRemoveParkedOrderField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqRemoveParkedOrder", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqRemoveParkedOrder(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqRemoveParkedOrderAction(*args) ⇒ Object
199938 199939 199940 199941 199942 199943 199944 199945 199946 199947 199948 199949 199950 199951 199952 199953 199954 199955 199956 199957 199958 199959 199960 199961 199962 199963 199964 199965 199966 199967 199968 199969 199970 199971 199972 199973 199974 199975 |
# File 'ext/ctp/ctp.cxx', line 199938
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqRemoveParkedOrderAction(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcRemoveParkedOrderActionField *arg2 = (CThostFtdcRemoveParkedOrderActionField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqRemoveParkedOrderAction", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRemoveParkedOrderActionField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRemoveParkedOrderActionField *","ReqRemoveParkedOrderAction", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcRemoveParkedOrderActionField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqRemoveParkedOrderAction", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqRemoveParkedOrderAction(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqSettlementInfoConfirm(*args) ⇒ Object
199858 199859 199860 199861 199862 199863 199864 199865 199866 199867 199868 199869 199870 199871 199872 199873 199874 199875 199876 199877 199878 199879 199880 199881 199882 199883 199884 199885 199886 199887 199888 199889 199890 199891 199892 199893 199894 199895 |
# File 'ext/ctp/ctp.cxx', line 199858
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqSettlementInfoConfirm(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcSettlementInfoConfirmField *arg2 = (CThostFtdcSettlementInfoConfirmField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqSettlementInfoConfirm", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSettlementInfoConfirmField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSettlementInfoConfirmField *","ReqSettlementInfoConfirm", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcSettlementInfoConfirmField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqSettlementInfoConfirm", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqSettlementInfoConfirm(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqTradingAccountPasswordUpdate(*args) ⇒ Object
199618 199619 199620 199621 199622 199623 199624 199625 199626 199627 199628 199629 199630 199631 199632 199633 199634 199635 199636 199637 199638 199639 199640 199641 199642 199643 199644 199645 199646 199647 199648 199649 199650 199651 199652 199653 199654 199655 |
# File 'ext/ctp/ctp.cxx', line 199618
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqTradingAccountPasswordUpdate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcTradingAccountPasswordUpdateField *arg2 = (CThostFtdcTradingAccountPasswordUpdateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqTradingAccountPasswordUpdate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcTradingAccountPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcTradingAccountPasswordUpdateField *","ReqTradingAccountPasswordUpdate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcTradingAccountPasswordUpdateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqTradingAccountPasswordUpdate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqTradingAccountPasswordUpdate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqUserLogin(*args) ⇒ Object
199498 199499 199500 199501 199502 199503 199504 199505 199506 199507 199508 199509 199510 199511 199512 199513 199514 199515 199516 199517 199518 199519 199520 199521 199522 199523 199524 199525 199526 199527 199528 199529 199530 199531 199532 199533 199534 199535 |
# File 'ext/ctp/ctp.cxx', line 199498
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqUserLogin(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcReqUserLoginField *arg2 = (CThostFtdcReqUserLoginField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqUserLogin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcReqUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcReqUserLoginField *","ReqUserLogin", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcReqUserLoginField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserLogin", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqUserLogin(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqUserLogout(*args) ⇒ Object
199538 199539 199540 199541 199542 199543 199544 199545 199546 199547 199548 199549 199550 199551 199552 199553 199554 199555 199556 199557 199558 199559 199560 199561 199562 199563 199564 199565 199566 199567 199568 199569 199570 199571 199572 199573 199574 199575 |
# File 'ext/ctp/ctp.cxx', line 199538
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqUserLogout(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcUserLogoutField *arg2 = (CThostFtdcUserLogoutField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqUserLogout", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserLogoutField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","ReqUserLogout", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserLogout", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqUserLogout(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#ReqUserPasswordUpdate(*args) ⇒ Object
199578 199579 199580 199581 199582 199583 199584 199585 199586 199587 199588 199589 199590 199591 199592 199593 199594 199595 199596 199597 199598 199599 199600 199601 199602 199603 199604 199605 199606 199607 199608 199609 199610 199611 199612 199613 199614 199615 |
# File 'ext/ctp/ctp.cxx', line 199578
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_ReqUserPasswordUpdate(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
CThostFtdcUserPasswordUpdateField *arg2 = (CThostFtdcUserPasswordUpdateField *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","ReqUserPasswordUpdate", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserPasswordUpdateField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserPasswordUpdateField *","ReqUserPasswordUpdate", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcUserPasswordUpdateField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ReqUserPasswordUpdate", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
result = (int)(arg1)->ReqUserPasswordUpdate(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SubscribePrivateTopic(*args) ⇒ Object
199400 199401 199402 199403 199404 199405 199406 199407 199408 199409 199410 199411 199412 199413 199414 199415 199416 199417 199418 199419 199420 199421 199422 199423 199424 199425 199426 |
# File 'ext/ctp/ctp.cxx', line 199400
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_SubscribePrivateTopic(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
THOST_TE_RESUME_TYPE 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","SubscribePrivateTopic", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "THOST_TE_RESUME_TYPE","SubscribePrivateTopic", 2, argv[0] ));
}
arg2 = static_cast< THOST_TE_RESUME_TYPE >(val2);
(arg1)->SubscribePrivateTopic(arg2);
return Qnil;
fail:
return Qnil;
}
|
#SubscribePublicTopic(*args) ⇒ Object
199429 199430 199431 199432 199433 199434 199435 199436 199437 199438 199439 199440 199441 199442 199443 199444 199445 199446 199447 199448 199449 199450 199451 199452 199453 199454 199455 |
# File 'ext/ctp/ctp.cxx', line 199429
SWIGINTERN VALUE
_wrap_CThostFtdcTraderApi_SubscribePublicTopic(int argc, VALUE *argv, VALUE self) {
CThostFtdcTraderApi *arg1 = (CThostFtdcTraderApi *) 0 ;
THOST_TE_RESUME_TYPE 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_CThostFtdcTraderApi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcTraderApi *","SubscribePublicTopic", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcTraderApi * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "THOST_TE_RESUME_TYPE","SubscribePublicTopic", 2, argv[0] ));
}
arg2 = static_cast< THOST_TE_RESUME_TYPE >(val2);
(arg1)->SubscribePublicTopic(arg2);
return Qnil;
fail:
return Qnil;
}
|