Class: Ctp::CThostFtdcMarketDataStaticField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcMarketDataStaticField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #ClosePrice(*args) ⇒ Object
- #ClosePrice=(*args) ⇒ Object
- #CurrDelta(*args) ⇒ Object
- #CurrDelta=(*args) ⇒ Object
- #HighestPrice(*args) ⇒ Object
- #HighestPrice=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #LowerLimitPrice(*args) ⇒ Object
- #LowerLimitPrice=(*args) ⇒ Object
- #LowestPrice(*args) ⇒ Object
- #LowestPrice=(*args) ⇒ Object
- #OpenPrice(*args) ⇒ Object
- #OpenPrice=(*args) ⇒ Object
- #SettlementPrice(*args) ⇒ Object
- #SettlementPrice=(*args) ⇒ Object
- #UpperLimitPrice(*args) ⇒ Object
- #UpperLimitPrice=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
99641 99642 99643 99644 99645 99646 99647 99648 99649 99650 99651 99652 99653 99654 |
# File 'ext/ctp/ctp.cxx', line 99641
SWIGINTERN VALUE
_wrap_new_CThostFtdcMarketDataStaticField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataStaticField";
CThostFtdcMarketDataStaticField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcMarketDataStaticField *)new CThostFtdcMarketDataStaticField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#ClosePrice(*args) ⇒ Object
99390 99391 99392 99393 99394 99395 99396 99397 99398 99399 99400 99401 99402 99403 99404 99405 99406 99407 99408 99409 99410 99411 |
# File 'ext/ctp/ctp.cxx', line 99390
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_ClosePrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","ClosePrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->ClosePrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#ClosePrice=(*args) ⇒ Object
99361 99362 99363 99364 99365 99366 99367 99368 99369 99370 99371 99372 99373 99374 99375 99376 99377 99378 99379 99380 99381 99382 99383 99384 99385 99386 99387 |
# File 'ext/ctp/ctp.cxx', line 99361
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_ClosePrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","ClosePrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","ClosePrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->ClosePrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CurrDelta(*args) ⇒ Object
99602 99603 99604 99605 99606 99607 99608 99609 99610 99611 99612 99613 99614 99615 99616 99617 99618 99619 99620 99621 99622 99623 |
# File 'ext/ctp/ctp.cxx', line 99602
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_CurrDelta_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcRatioType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","CurrDelta", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->CurrDelta);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CurrDelta=(*args) ⇒ Object
99573 99574 99575 99576 99577 99578 99579 99580 99581 99582 99583 99584 99585 99586 99587 99588 99589 99590 99591 99592 99593 99594 99595 99596 99597 99598 99599 |
# File 'ext/ctp/ctp.cxx', line 99573
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_CurrDelta_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcRatioType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","CurrDelta", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","CurrDelta", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->CurrDelta = arg2;
return Qnil;
fail:
return Qnil;
}
|
#HighestPrice(*args) ⇒ Object
99284 99285 99286 99287 99288 99289 99290 99291 99292 99293 99294 99295 99296 99297 99298 99299 99300 99301 99302 99303 99304 99305 |
# File 'ext/ctp/ctp.cxx', line 99284
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_HighestPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","HighestPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->HighestPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#HighestPrice=(*args) ⇒ Object
99255 99256 99257 99258 99259 99260 99261 99262 99263 99264 99265 99266 99267 99268 99269 99270 99271 99272 99273 99274 99275 99276 99277 99278 99279 99280 99281 |
# File 'ext/ctp/ctp.cxx', line 99255
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_HighestPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","HighestPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","HighestPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->HighestPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#LowerLimitPrice(*args) ⇒ Object
99496 99497 99498 99499 99500 99501 99502 99503 99504 99505 99506 99507 99508 99509 99510 99511 99512 99513 99514 99515 99516 99517 |
# File 'ext/ctp/ctp.cxx', line 99496
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_LowerLimitPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowerLimitPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->LowerLimitPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#LowerLimitPrice=(*args) ⇒ Object
99467 99468 99469 99470 99471 99472 99473 99474 99475 99476 99477 99478 99479 99480 99481 99482 99483 99484 99485 99486 99487 99488 99489 99490 99491 99492 99493 |
# File 'ext/ctp/ctp.cxx', line 99467
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_LowerLimitPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowerLimitPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowerLimitPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->LowerLimitPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#LowestPrice(*args) ⇒ Object
99337 99338 99339 99340 99341 99342 99343 99344 99345 99346 99347 99348 99349 99350 99351 99352 99353 99354 99355 99356 99357 99358 |
# File 'ext/ctp/ctp.cxx', line 99337
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_LowestPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowestPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->LowestPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#LowestPrice=(*args) ⇒ Object
99308 99309 99310 99311 99312 99313 99314 99315 99316 99317 99318 99319 99320 99321 99322 99323 99324 99325 99326 99327 99328 99329 99330 99331 99332 99333 99334 |
# File 'ext/ctp/ctp.cxx', line 99308
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_LowestPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","LowestPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LowestPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->LowestPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#OpenPrice(*args) ⇒ Object
99231 99232 99233 99234 99235 99236 99237 99238 99239 99240 99241 99242 99243 99244 99245 99246 99247 99248 99249 99250 99251 99252 |
# File 'ext/ctp/ctp.cxx', line 99231
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_OpenPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","OpenPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->OpenPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#OpenPrice=(*args) ⇒ Object
99202 99203 99204 99205 99206 99207 99208 99209 99210 99211 99212 99213 99214 99215 99216 99217 99218 99219 99220 99221 99222 99223 99224 99225 99226 99227 99228 |
# File 'ext/ctp/ctp.cxx', line 99202
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_OpenPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","OpenPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","OpenPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->OpenPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SettlementPrice(*args) ⇒ Object
99549 99550 99551 99552 99553 99554 99555 99556 99557 99558 99559 99560 99561 99562 99563 99564 99565 99566 99567 99568 99569 99570 |
# File 'ext/ctp/ctp.cxx', line 99549
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_SettlementPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","SettlementPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->SettlementPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SettlementPrice=(*args) ⇒ Object
99520 99521 99522 99523 99524 99525 99526 99527 99528 99529 99530 99531 99532 99533 99534 99535 99536 99537 99538 99539 99540 99541 99542 99543 99544 99545 99546 |
# File 'ext/ctp/ctp.cxx', line 99520
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_SettlementPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","SettlementPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","SettlementPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->SettlementPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|
#UpperLimitPrice(*args) ⇒ Object
99443 99444 99445 99446 99447 99448 99449 99450 99451 99452 99453 99454 99455 99456 99457 99458 99459 99460 99461 99462 99463 99464 |
# File 'ext/ctp/ctp.cxx', line 99443
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_UpperLimitPrice_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcPriceType 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_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","UpperLimitPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->UpperLimitPrice);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#UpperLimitPrice=(*args) ⇒ Object
99414 99415 99416 99417 99418 99419 99420 99421 99422 99423 99424 99425 99426 99427 99428 99429 99430 99431 99432 99433 99434 99435 99436 99437 99438 99439 99440 |
# File 'ext/ctp/ctp.cxx', line 99414
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataStaticField_UpperLimitPrice_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataStaticField *arg1 = (CThostFtdcMarketDataStaticField *) 0 ;
TThostFtdcPriceType arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataStaticField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataStaticField *","UpperLimitPrice", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataStaticField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","UpperLimitPrice", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->UpperLimitPrice = arg2;
return Qnil;
fail:
return Qnil;
}
|