Class: Ctp::CThostFtdcOptionInstrMarginAdjustField

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



65772
65773
65774
65775
65776
65777
65778
65779
65780
65781
65782
65783
65784
65785
# File 'ext/ctp/ctp.cxx', line 65772

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

Instance Method Details

#AShortMarginRatioByMoney(*args) ⇒ Object



65627
65628
65629
65630
65631
65632
65633
65634
65635
65636
65637
65638
65639
65640
65641
65642
65643
65644
65645
65646
65647
65648
# File 'ext/ctp/ctp.cxx', line 65627

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

#AShortMarginRatioByMoney=(*args) ⇒ Object



65598
65599
65600
65601
65602
65603
65604
65605
65606
65607
65608
65609
65610
65611
65612
65613
65614
65615
65616
65617
65618
65619
65620
65621
65622
65623
65624
# File 'ext/ctp/ctp.cxx', line 65598

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

#AShortMarginRatioByVolume(*args) ⇒ Object



65680
65681
65682
65683
65684
65685
65686
65687
65688
65689
65690
65691
65692
65693
65694
65695
65696
65697
65698
65699
65700
65701
# File 'ext/ctp/ctp.cxx', line 65680

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_AShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcMoneyType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","AShortMarginRatioByVolume", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (TThostFtdcMoneyType) ((arg1)->AShortMarginRatioByVolume);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#AShortMarginRatioByVolume=(*args) ⇒ Object



65651
65652
65653
65654
65655
65656
65657
65658
65659
65660
65661
65662
65663
65664
65665
65666
65667
65668
65669
65670
65671
65672
65673
65674
65675
65676
65677
# File 'ext/ctp/ctp.cxx', line 65651

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

#BrokerID(*args) ⇒ Object



65296
65297
65298
65299
65300
65301
65302
65303
65304
65305
65306
65307
65308
65309
65310
65311
65312
65313
65314
65315
65316
65317
65318
65319
65320
65321
65322
65323
# File 'ext/ctp/ctp.cxx', line 65296

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (char *) ((arg1)->BrokerID);
  {
    size_t size = SWIG_strnlen(result, 11);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#BrokerID=(*args) ⇒ Object



65266
65267
65268
65269
65270
65271
65272
65273
65274
65275
65276
65277
65278
65279
65280
65281
65282
65283
65284
65285
65286
65287
65288
65289
65290
65291
65292
65293
# File 'ext/ctp/ctp.cxx', line 65266

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[11] ;
  int res2 ;
  
  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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","BrokerID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 11);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [11]","BrokerID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->BrokerID,arg2,11*sizeof(char));
  else memset(arg1->BrokerID,0,11*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#HShortMarginRatioByMoney(*args) ⇒ Object



65521
65522
65523
65524
65525
65526
65527
65528
65529
65530
65531
65532
65533
65534
65535
65536
65537
65538
65539
65540
65541
65542
# File 'ext/ctp/ctp.cxx', line 65521

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

#HShortMarginRatioByMoney=(*args) ⇒ Object



65492
65493
65494
65495
65496
65497
65498
65499
65500
65501
65502
65503
65504
65505
65506
65507
65508
65509
65510
65511
65512
65513
65514
65515
65516
65517
65518
# File 'ext/ctp/ctp.cxx', line 65492

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

#HShortMarginRatioByVolume(*args) ⇒ Object



65574
65575
65576
65577
65578
65579
65580
65581
65582
65583
65584
65585
65586
65587
65588
65589
65590
65591
65592
65593
65594
65595
# File 'ext/ctp/ctp.cxx', line 65574

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_HShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcMoneyType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","HShortMarginRatioByVolume", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (TThostFtdcMoneyType) ((arg1)->HShortMarginRatioByVolume);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#HShortMarginRatioByVolume=(*args) ⇒ Object



65545
65546
65547
65548
65549
65550
65551
65552
65553
65554
65555
65556
65557
65558
65559
65560
65561
65562
65563
65564
65565
65566
65567
65568
65569
65570
65571
# File 'ext/ctp/ctp.cxx', line 65545

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

#InstrumentID(*args) ⇒ Object



65183
65184
65185
65186
65187
65188
65189
65190
65191
65192
65193
65194
65195
65196
65197
65198
65199
65200
65201
65202
65203
65204
65205
65206
65207
65208
65209
65210
# File 'ext/ctp/ctp.cxx', line 65183

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InstrumentID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (char *) ((arg1)->InstrumentID);
  {
    size_t size = SWIG_strnlen(result, 31);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#InstrumentID=(*args) ⇒ Object



65153
65154
65155
65156
65157
65158
65159
65160
65161
65162
65163
65164
65165
65166
65167
65168
65169
65170
65171
65172
65173
65174
65175
65176
65177
65178
65179
65180
# File 'ext/ctp/ctp.cxx', line 65153

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[31] ;
  int res2 ;
  
  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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InstrumentID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 31);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [31]","InstrumentID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->InstrumentID,arg2,31*sizeof(char));
  else memset(arg1->InstrumentID,0,31*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#InvestorID(*args) ⇒ Object



65356
65357
65358
65359
65360
65361
65362
65363
65364
65365
65366
65367
65368
65369
65370
65371
65372
65373
65374
65375
65376
65377
65378
65379
65380
65381
65382
65383
# File 'ext/ctp/ctp.cxx', line 65356

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (char *) ((arg1)->InvestorID);
  {
    size_t size = SWIG_strnlen(result, 13);
    
    
    
    vresult = SWIG_FromCharPtrAndSize(result, size);
  }
  return vresult;
fail:
  return Qnil;
}

#InvestorID=(*args) ⇒ Object



65326
65327
65328
65329
65330
65331
65332
65333
65334
65335
65336
65337
65338
65339
65340
65341
65342
65343
65344
65345
65346
65347
65348
65349
65350
65351
65352
65353
# File 'ext/ctp/ctp.cxx', line 65326

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[13] ;
  int res2 ;
  
  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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorID", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, 13);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","InvestorID", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->InvestorID,arg2,13*sizeof(char));
  else memset(arg1->InvestorID,0,13*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#InvestorRange(*args) ⇒ Object



65242
65243
65244
65245
65246
65247
65248
65249
65250
65251
65252
65253
65254
65255
65256
65257
65258
65259
65260
65261
65262
65263
# File 'ext/ctp/ctp.cxx', line 65242

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorRange_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcInvestorRangeType 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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorRange", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange);
  vresult = SWIG_From_char(static_cast< char >(result));
  return vresult;
fail:
  return Qnil;
}

#InvestorRange=(*args) ⇒ Object



65213
65214
65215
65216
65217
65218
65219
65220
65221
65222
65223
65224
65225
65226
65227
65228
65229
65230
65231
65232
65233
65234
65235
65236
65237
65238
65239
# File 'ext/ctp/ctp.cxx', line 65213

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_InvestorRange_set(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  TThostFtdcInvestorRangeType arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char 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_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","InvestorRange", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  ecode2 = SWIG_AsVal_char(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcInvestorRangeType","InvestorRange", 2, argv[0] ));
  } 
  arg2 = static_cast< TThostFtdcInvestorRangeType >(val2);
  if (arg1) (arg1)->InvestorRange = arg2;
  return Qnil;
fail:
  return Qnil;
}

#IsRelative(*args) ⇒ Object



65733
65734
65735
65736
65737
65738
65739
65740
65741
65742
65743
65744
65745
65746
65747
65748
65749
65750
65751
65752
65753
65754
# File 'ext/ctp/ctp.cxx', line 65733

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

#IsRelative=(*args) ⇒ Object



65704
65705
65706
65707
65708
65709
65710
65711
65712
65713
65714
65715
65716
65717
65718
65719
65720
65721
65722
65723
65724
65725
65726
65727
65728
65729
65730
# File 'ext/ctp/ctp.cxx', line 65704

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

#SShortMarginRatioByMoney(*args) ⇒ Object



65415
65416
65417
65418
65419
65420
65421
65422
65423
65424
65425
65426
65427
65428
65429
65430
65431
65432
65433
65434
65435
65436
# File 'ext/ctp/ctp.cxx', line 65415

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

#SShortMarginRatioByMoney=(*args) ⇒ Object



65386
65387
65388
65389
65390
65391
65392
65393
65394
65395
65396
65397
65398
65399
65400
65401
65402
65403
65404
65405
65406
65407
65408
65409
65410
65411
65412
# File 'ext/ctp/ctp.cxx', line 65386

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

#SShortMarginRatioByVolume(*args) ⇒ Object



65468
65469
65470
65471
65472
65473
65474
65475
65476
65477
65478
65479
65480
65481
65482
65483
65484
65485
65486
65487
65488
65489
# File 'ext/ctp/ctp.cxx', line 65468

SWIGINTERN VALUE
_wrap_CThostFtdcOptionInstrMarginAdjustField_SShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
  CThostFtdcOptionInstrMarginAdjustField *arg1 = (CThostFtdcOptionInstrMarginAdjustField *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  TThostFtdcMoneyType result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcOptionInstrMarginAdjustField, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcOptionInstrMarginAdjustField *","SShortMarginRatioByVolume", 1, self )); 
  }
  arg1 = reinterpret_cast< CThostFtdcOptionInstrMarginAdjustField * >(argp1);
  result = (TThostFtdcMoneyType) ((arg1)->SShortMarginRatioByVolume);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#SShortMarginRatioByVolume=(*args) ⇒ Object



65439
65440
65441
65442
65443
65444
65445
65446
65447
65448
65449
65450
65451
65452
65453
65454
65455
65456
65457
65458
65459
65460
65461
65462
65463
65464
65465
# File 'ext/ctp/ctp.cxx', line 65439

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