Class: Ctp::CThostFtdcMarketDataAsk45Field

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



101147
101148
101149
101150
101151
101152
101153
101154
101155
101156
101157
101158
101159
101160
# File 'ext/ctp/ctp.cxx', line 101147

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

Instance Method Details

#AskPrice4(*args) ⇒ Object



100949
100950
100951
100952
100953
100954
100955
100956
100957
100958
100959
100960
100961
100962
100963
100964
100965
100966
100967
100968
100969
100970
# File 'ext/ctp/ctp.cxx', line 100949

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

#AskPrice4=(*args) ⇒ Object



100920
100921
100922
100923
100924
100925
100926
100927
100928
100929
100930
100931
100932
100933
100934
100935
100936
100937
100938
100939
100940
100941
100942
100943
100944
100945
100946
# File 'ext/ctp/ctp.cxx', line 100920

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

#AskPrice5(*args) ⇒ Object



101055
101056
101057
101058
101059
101060
101061
101062
101063
101064
101065
101066
101067
101068
101069
101070
101071
101072
101073
101074
101075
101076
# File 'ext/ctp/ctp.cxx', line 101055

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

#AskPrice5=(*args) ⇒ Object



101026
101027
101028
101029
101030
101031
101032
101033
101034
101035
101036
101037
101038
101039
101040
101041
101042
101043
101044
101045
101046
101047
101048
101049
101050
101051
101052
# File 'ext/ctp/ctp.cxx', line 101026

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

#AskVolume4(*args) ⇒ Object



101002
101003
101004
101005
101006
101007
101008
101009
101010
101011
101012
101013
101014
101015
101016
101017
101018
101019
101020
101021
101022
101023
# File 'ext/ctp/ctp.cxx', line 101002

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

#AskVolume4=(*args) ⇒ Object



100973
100974
100975
100976
100977
100978
100979
100980
100981
100982
100983
100984
100985
100986
100987
100988
100989
100990
100991
100992
100993
100994
100995
100996
100997
100998
100999
# File 'ext/ctp/ctp.cxx', line 100973

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

#AskVolume5(*args) ⇒ Object



101108
101109
101110
101111
101112
101113
101114
101115
101116
101117
101118
101119
101120
101121
101122
101123
101124
101125
101126
101127
101128
101129
# File 'ext/ctp/ctp.cxx', line 101108

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

#AskVolume5=(*args) ⇒ Object



101079
101080
101081
101082
101083
101084
101085
101086
101087
101088
101089
101090
101091
101092
101093
101094
101095
101096
101097
101098
101099
101100
101101
101102
101103
101104
101105
# File 'ext/ctp/ctp.cxx', line 101079

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