Class: Ctp::CThostFtdcMarketDataBestPriceField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcMarketDataBestPriceField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AskPrice1(*args) ⇒ Object
- #AskPrice1=(*args) ⇒ Object
- #AskVolume1(*args) ⇒ Object
- #AskVolume1=(*args) ⇒ Object
- #BidPrice1(*args) ⇒ Object
- #BidPrice1=(*args) ⇒ Object
- #BidVolume1(*args) ⇒ Object
- #BidVolume1=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
Constructor Details
#initialize(*args) ⇒ Object
100143 100144 100145 100146 100147 100148 100149 100150 100151 100152 100153 100154 100155 100156 |
# File 'ext/ctp/ctp.cxx', line 100143
SWIGINTERN VALUE
_wrap_new_CThostFtdcMarketDataBestPriceField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataBestPriceField";
CThostFtdcMarketDataBestPriceField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcMarketDataBestPriceField *)new CThostFtdcMarketDataBestPriceField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#AskPrice1(*args) ⇒ Object
100051 100052 100053 100054 100055 100056 100057 100058 100059 100060 100061 100062 100063 100064 100065 100066 100067 100068 100069 100070 100071 100072 |
# File 'ext/ctp/ctp.cxx', line 100051
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_AskPrice1_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskPrice1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->AskPrice1);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#AskPrice1=(*args) ⇒ Object
100022 100023 100024 100025 100026 100027 100028 100029 100030 100031 100032 100033 100034 100035 100036 100037 100038 100039 100040 100041 100042 100043 100044 100045 100046 100047 100048 |
# File 'ext/ctp/ctp.cxx', line 100022
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_AskPrice1_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskPrice1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","AskPrice1", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->AskPrice1 = arg2;
return Qnil;
fail:
return Qnil;
}
|
#AskVolume1(*args) ⇒ Object
100104 100105 100106 100107 100108 100109 100110 100111 100112 100113 100114 100115 100116 100117 100118 100119 100120 100121 100122 100123 100124 100125 |
# File 'ext/ctp/ctp.cxx', line 100104
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_AskVolume1_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskVolume1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->AskVolume1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#AskVolume1=(*args) ⇒ Object
100075 100076 100077 100078 100079 100080 100081 100082 100083 100084 100085 100086 100087 100088 100089 100090 100091 100092 100093 100094 100095 100096 100097 100098 100099 100100 100101 |
# File 'ext/ctp/ctp.cxx', line 100075
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_AskVolume1_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","AskVolume1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","AskVolume1", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->AskVolume1 = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BidPrice1(*args) ⇒ Object
99945 99946 99947 99948 99949 99950 99951 99952 99953 99954 99955 99956 99957 99958 99959 99960 99961 99962 99963 99964 99965 99966 |
# File 'ext/ctp/ctp.cxx', line 99945
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_BidPrice1_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidPrice1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
result = (TThostFtdcPriceType) ((arg1)->BidPrice1);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#BidPrice1=(*args) ⇒ Object
99916 99917 99918 99919 99920 99921 99922 99923 99924 99925 99926 99927 99928 99929 99930 99931 99932 99933 99934 99935 99936 99937 99938 99939 99940 99941 99942 |
# File 'ext/ctp/ctp.cxx', line 99916
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_BidPrice1_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidPrice1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","BidPrice1", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcPriceType >(val2);
if (arg1) (arg1)->BidPrice1 = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BidVolume1(*args) ⇒ Object
99998 99999 100000 100001 100002 100003 100004 100005 100006 100007 100008 100009 100010 100011 100012 100013 100014 100015 100016 100017 100018 100019 |
# File 'ext/ctp/ctp.cxx', line 99998
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_BidVolume1_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidVolume1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
result = (TThostFtdcVolumeType) ((arg1)->BidVolume1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#BidVolume1=(*args) ⇒ Object
99969 99970 99971 99972 99973 99974 99975 99976 99977 99978 99979 99980 99981 99982 99983 99984 99985 99986 99987 99988 99989 99990 99991 99992 99993 99994 99995 |
# File 'ext/ctp/ctp.cxx', line 99969
SWIGINTERN VALUE
_wrap_CThostFtdcMarketDataBestPriceField_BidVolume1_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcMarketDataBestPriceField *arg1 = (CThostFtdcMarketDataBestPriceField *) 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_CThostFtdcMarketDataBestPriceField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataBestPriceField *","BidVolume1", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMarketDataBestPriceField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","BidVolume1", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcVolumeType >(val2);
if (arg1) (arg1)->BidVolume1 = arg2;
return Qnil;
fail:
return Qnil;
}
|