Class: Ctp::CThostFtdcSyncingInstrumentMarginRateField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncingInstrumentMarginRateField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #HedgeFlag(*args) ⇒ Object
- #HedgeFlag=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #InstrumentID(*args) ⇒ Object
- #InstrumentID=(*args) ⇒ Object
- #InvestorID(*args) ⇒ Object
- #InvestorID=(*args) ⇒ Object
- #InvestorRange(*args) ⇒ Object
- #InvestorRange=(*args) ⇒ Object
- #IsRelative(*args) ⇒ Object
- #IsRelative=(*args) ⇒ Object
- #LongMarginRatioByMoney(*args) ⇒ Object
- #LongMarginRatioByMoney=(*args) ⇒ Object
- #LongMarginRatioByVolume(*args) ⇒ Object
- #LongMarginRatioByVolume=(*args) ⇒ Object
- #ShortMarginRatioByMoney(*args) ⇒ Object
- #ShortMarginRatioByMoney=(*args) ⇒ Object
- #ShortMarginRatioByVolume(*args) ⇒ Object
- #ShortMarginRatioByVolume=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
56280 56281 56282 56283 56284 56285 56286 56287 56288 56289 56290 56291 56292 56293 |
# File 'ext/ctp/ctp.cxx', line 56280
SWIGINTERN VALUE
_wrap_new_CThostFtdcSyncingInstrumentMarginRateField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingInstrumentMarginRateField";
CThostFtdcSyncingInstrumentMarginRateField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSyncingInstrumentMarginRateField *)new CThostFtdcSyncingInstrumentMarginRateField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#BrokerID(*args) ⇒ Object
55857 55858 55859 55860 55861 55862 55863 55864 55865 55866 55867 55868 55869 55870 55871 55872 55873 55874 55875 55876 55877 55878 55879 55880 55881 55882 55883 55884 |
# File 'ext/ctp/ctp.cxx', line 55857
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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
55827 55828 55829 55830 55831 55832 55833 55834 55835 55836 55837 55838 55839 55840 55841 55842 55843 55844 55845 55846 55847 55848 55849 55850 55851 55852 55853 55854 |
# File 'ext/ctp/ctp.cxx', line 55827
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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;
}
|
#HedgeFlag(*args) ⇒ Object
55976 55977 55978 55979 55980 55981 55982 55983 55984 55985 55986 55987 55988 55989 55990 55991 55992 55993 55994 55995 55996 55997 |
# File 'ext/ctp/ctp.cxx', line 55976
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_HedgeFlag_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcHedgeFlagType) ((arg1)->HedgeFlag);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#HedgeFlag=(*args) ⇒ Object
55947 55948 55949 55950 55951 55952 55953 55954 55955 55956 55957 55958 55959 55960 55961 55962 55963 55964 55965 55966 55967 55968 55969 55970 55971 55972 55973 |
# File 'ext/ctp/ctp.cxx', line 55947
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_HedgeFlag_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 0 ;
TThostFtdcHedgeFlagType 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","HedgeFlag", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
ecode2 = SWIG_AsVal_char(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcHedgeFlagType","HedgeFlag", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcHedgeFlagType >(val2);
if (arg1) (arg1)->HedgeFlag = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InstrumentID(*args) ⇒ Object
55744 55745 55746 55747 55748 55749 55750 55751 55752 55753 55754 55755 55756 55757 55758 55759 55760 55761 55762 55763 55764 55765 55766 55767 55768 55769 55770 55771 |
# File 'ext/ctp/ctp.cxx', line 55744
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_InstrumentID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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
55714 55715 55716 55717 55718 55719 55720 55721 55722 55723 55724 55725 55726 55727 55728 55729 55730 55731 55732 55733 55734 55735 55736 55737 55738 55739 55740 55741 |
# File 'ext/ctp/ctp.cxx', line 55714
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_InstrumentID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InstrumentID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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
55917 55918 55919 55920 55921 55922 55923 55924 55925 55926 55927 55928 55929 55930 55931 55932 55933 55934 55935 55936 55937 55938 55939 55940 55941 55942 55943 55944 |
# File 'ext/ctp/ctp.cxx', line 55917
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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
55887 55888 55889 55890 55891 55892 55893 55894 55895 55896 55897 55898 55899 55900 55901 55902 55903 55904 55905 55906 55907 55908 55909 55910 55911 55912 55913 55914 |
# File 'ext/ctp/ctp.cxx', line 55887
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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
55803 55804 55805 55806 55807 55808 55809 55810 55811 55812 55813 55814 55815 55816 55817 55818 55819 55820 55821 55822 55823 55824 |
# File 'ext/ctp/ctp.cxx', line 55803
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorRange_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcInvestorRangeType) ((arg1)->InvestorRange);
vresult = SWIG_From_char(static_cast< char >(result));
return vresult;
fail:
return Qnil;
}
|
#InvestorRange=(*args) ⇒ Object
55774 55775 55776 55777 55778 55779 55780 55781 55782 55783 55784 55785 55786 55787 55788 55789 55790 55791 55792 55793 55794 55795 55796 55797 55798 55799 55800 |
# File 'ext/ctp/ctp.cxx', line 55774
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_InvestorRange_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","InvestorRange", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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
56241 56242 56243 56244 56245 56246 56247 56248 56249 56250 56251 56252 56253 56254 56255 56256 56257 56258 56259 56260 56261 56262 |
# File 'ext/ctp/ctp.cxx', line 56241
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_IsRelative_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","IsRelative", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcBoolType) ((arg1)->IsRelative);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#IsRelative=(*args) ⇒ Object
56212 56213 56214 56215 56216 56217 56218 56219 56220 56221 56222 56223 56224 56225 56226 56227 56228 56229 56230 56231 56232 56233 56234 56235 56236 56237 56238 |
# File 'ext/ctp/ctp.cxx', line 56212
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_IsRelative_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","IsRelative", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(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;
}
|
#LongMarginRatioByMoney(*args) ⇒ Object
56029 56030 56031 56032 56033 56034 56035 56036 56037 56038 56039 56040 56041 56042 56043 56044 56045 56046 56047 56048 56049 56050 |
# File 'ext/ctp/ctp.cxx', line 56029
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->LongMarginRatioByMoney);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#LongMarginRatioByMoney=(*args) ⇒ Object
56000 56001 56002 56003 56004 56005 56006 56007 56008 56009 56010 56011 56012 56013 56014 56015 56016 56017 56018 56019 56020 56021 56022 56023 56024 56025 56026 |
# File 'ext/ctp/ctp.cxx', line 56000
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","LongMarginRatioByMoney", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->LongMarginRatioByMoney = arg2;
return Qnil;
fail:
return Qnil;
}
|
#LongMarginRatioByVolume(*args) ⇒ Object
56082 56083 56084 56085 56086 56087 56088 56089 56090 56091 56092 56093 56094 56095 56096 56097 56098 56099 56100 56101 56102 56103 |
# File 'ext/ctp/ctp.cxx', line 56082
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->LongMarginRatioByVolume);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#LongMarginRatioByVolume=(*args) ⇒ Object
56053 56054 56055 56056 56057 56058 56059 56060 56061 56062 56063 56064 56065 56066 56067 56068 56069 56070 56071 56072 56073 56074 56075 56076 56077 56078 56079 |
# File 'ext/ctp/ctp.cxx', line 56053
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_LongMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","LongMarginRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","LongMarginRatioByVolume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->LongMarginRatioByVolume = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ShortMarginRatioByMoney(*args) ⇒ Object
56135 56136 56137 56138 56139 56140 56141 56142 56143 56144 56145 56146 56147 56148 56149 56150 56151 56152 56153 56154 56155 56156 |
# File 'ext/ctp/ctp.cxx', line 56135
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByMoney_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcRatioType) ((arg1)->ShortMarginRatioByMoney);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#ShortMarginRatioByMoney=(*args) ⇒ Object
56106 56107 56108 56109 56110 56111 56112 56113 56114 56115 56116 56117 56118 56119 56120 56121 56122 56123 56124 56125 56126 56127 56128 56129 56130 56131 56132 |
# File 'ext/ctp/ctp.cxx', line 56106
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByMoney_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByMoney", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcRatioType","ShortMarginRatioByMoney", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcRatioType >(val2);
if (arg1) (arg1)->ShortMarginRatioByMoney = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ShortMarginRatioByVolume(*args) ⇒ Object
56188 56189 56190 56191 56192 56193 56194 56195 56196 56197 56198 56199 56200 56201 56202 56203 56204 56205 56206 56207 56208 56209 |
# File 'ext/ctp/ctp.cxx', line 56188
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByVolume_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->ShortMarginRatioByVolume);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#ShortMarginRatioByVolume=(*args) ⇒ Object
56159 56160 56161 56162 56163 56164 56165 56166 56167 56168 56169 56170 56171 56172 56173 56174 56175 56176 56177 56178 56179 56180 56181 56182 56183 56184 56185 |
# File 'ext/ctp/ctp.cxx', line 56159
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingInstrumentMarginRateField_ShortMarginRatioByVolume_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingInstrumentMarginRateField *arg1 = (CThostFtdcSyncingInstrumentMarginRateField *) 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_CThostFtdcSyncingInstrumentMarginRateField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingInstrumentMarginRateField *","ShortMarginRatioByVolume", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingInstrumentMarginRateField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ShortMarginRatioByVolume", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->ShortMarginRatioByVolume = arg2;
return Qnil;
fail:
return Qnil;
}
|