Class: Ctp::CThostFtdcMarketDataAsk23Field

Inherits:
Object
  • Object
show all
Defined in:
ext/ctp/ctp.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



100645
100646
100647
100648
100649
100650
100651
100652
100653
100654
100655
100656
100657
100658
# File 'ext/ctp/ctp.cxx', line 100645

SWIGINTERN VALUE
_wrap_new_CThostFtdcMarketDataAsk23Field(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataAsk23Field";
  CThostFtdcMarketDataAsk23Field *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (CThostFtdcMarketDataAsk23Field *)new CThostFtdcMarketDataAsk23Field();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#AskPrice2(*args) ⇒ Object



100447
100448
100449
100450
100451
100452
100453
100454
100455
100456
100457
100458
100459
100460
100461
100462
100463
100464
100465
100466
100467
100468
# File 'ext/ctp/ctp.cxx', line 100447

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

#AskPrice2=(*args) ⇒ Object



100418
100419
100420
100421
100422
100423
100424
100425
100426
100427
100428
100429
100430
100431
100432
100433
100434
100435
100436
100437
100438
100439
100440
100441
100442
100443
100444
# File 'ext/ctp/ctp.cxx', line 100418

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataAsk23Field_AskPrice2_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 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_CThostFtdcMarketDataAsk23Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskPrice2", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice2", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->AskPrice2 = arg2;
  return Qnil;
fail:
  return Qnil;
}

#AskPrice3(*args) ⇒ Object



100553
100554
100555
100556
100557
100558
100559
100560
100561
100562
100563
100564
100565
100566
100567
100568
100569
100570
100571
100572
100573
100574
# File 'ext/ctp/ctp.cxx', line 100553

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

#AskPrice3=(*args) ⇒ Object



100524
100525
100526
100527
100528
100529
100530
100531
100532
100533
100534
100535
100536
100537
100538
100539
100540
100541
100542
100543
100544
100545
100546
100547
100548
100549
100550
# File 'ext/ctp/ctp.cxx', line 100524

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataAsk23Field_AskPrice3_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 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_CThostFtdcMarketDataAsk23Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskPrice3", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice3", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcPriceType >(val2);
  if (arg1) (arg1)->AskPrice3 = arg2;
  return Qnil;
fail:
  return Qnil;
}

#AskVolume2(*args) ⇒ Object



100500
100501
100502
100503
100504
100505
100506
100507
100508
100509
100510
100511
100512
100513
100514
100515
100516
100517
100518
100519
100520
100521
# File 'ext/ctp/ctp.cxx', line 100500

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataAsk23Field_AskVolume2_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume2", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1);
  result = (TThostFtdcVolumeType) ((arg1)->AskVolume2);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#AskVolume2=(*args) ⇒ Object



100471
100472
100473
100474
100475
100476
100477
100478
100479
100480
100481
100482
100483
100484
100485
100486
100487
100488
100489
100490
100491
100492
100493
100494
100495
100496
100497
# File 'ext/ctp/ctp.cxx', line 100471

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataAsk23Field_AskVolume2_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ;
  TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume2", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume2", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcVolumeType >(val2);
  if (arg1) (arg1)->AskVolume2 = arg2;
  return Qnil;
fail:
  return Qnil;
}

#AskVolume3(*args) ⇒ Object



100606
100607
100608
100609
100610
100611
100612
100613
100614
100615
100616
100617
100618
100619
100620
100621
100622
100623
100624
100625
100626
100627
# File 'ext/ctp/ctp.cxx', line 100606

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataAsk23Field_AskVolume3_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume3", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1);
  result = (TThostFtdcVolumeType) ((arg1)->AskVolume3);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#AskVolume3=(*args) ⇒ Object



100577
100578
100579
100580
100581
100582
100583
100584
100585
100586
100587
100588
100589
100590
100591
100592
100593
100594
100595
100596
100597
100598
100599
100600
100601
100602
100603
# File 'ext/ctp/ctp.cxx', line 100577

SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataAsk23Field_AskVolume3_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcMarketDataAsk23Field *arg1 = (CThostFtdcMarketDataAsk23Field *) 0 ;
  TThostFtdcVolumeType 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_CThostFtdcMarketDataAsk23Field, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataAsk23Field *","AskVolume3", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcMarketDataAsk23Field * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume3", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcVolumeType >(val2);
  if (arg1) (arg1)->AskVolume3 = arg2;
  return Qnil;
fail:
  return Qnil;
}