Class: Ctp::CThostFtdcSyncingTradingAccountField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcSyncingTradingAccountField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #AccountID(*args) ⇒ Object
- #AccountID=(*args) ⇒ Object
- #Available(*args) ⇒ Object
- #Available=(*args) ⇒ Object
- #Balance(*args) ⇒ Object
- #Balance=(*args) ⇒ Object
- #BrokerID(*args) ⇒ Object
- #BrokerID=(*args) ⇒ Object
- #CashIn(*args) ⇒ Object
- #CashIn=(*args) ⇒ Object
- #CloseProfit(*args) ⇒ Object
- #CloseProfit=(*args) ⇒ Object
- #Commission(*args) ⇒ Object
- #Commission=(*args) ⇒ Object
- #Credit(*args) ⇒ Object
- #Credit=(*args) ⇒ Object
- #CurrencyID(*args) ⇒ Object
- #CurrencyID=(*args) ⇒ Object
- #CurrMargin(*args) ⇒ Object
- #CurrMargin=(*args) ⇒ Object
- #DeliveryMargin(*args) ⇒ Object
- #DeliveryMargin=(*args) ⇒ Object
- #Deposit(*args) ⇒ Object
- #Deposit=(*args) ⇒ Object
- #ExchangeDeliveryMargin(*args) ⇒ Object
- #ExchangeDeliveryMargin=(*args) ⇒ Object
- #ExchangeMargin(*args) ⇒ Object
- #ExchangeMargin=(*args) ⇒ Object
- #FrozenCash(*args) ⇒ Object
- #FrozenCash=(*args) ⇒ Object
- #FrozenCommission(*args) ⇒ Object
- #FrozenCommission=(*args) ⇒ Object
- #FrozenMargin(*args) ⇒ Object
- #FrozenMargin=(*args) ⇒ Object
- #FundMortgageAvailable(*args) ⇒ Object
- #FundMortgageAvailable=(*args) ⇒ Object
- #FundMortgageIn(*args) ⇒ Object
- #FundMortgageIn=(*args) ⇒ Object
- #FundMortgageOut(*args) ⇒ Object
- #FundMortgageOut=(*args) ⇒ Object
- #initialize(*args) ⇒ Object constructor
- #Interest(*args) ⇒ Object
- #Interest=(*args) ⇒ Object
- #InterestBase(*args) ⇒ Object
- #InterestBase=(*args) ⇒ Object
- #Mortgage(*args) ⇒ Object
- #Mortgage=(*args) ⇒ Object
- #MortgageableFund(*args) ⇒ Object
- #MortgageableFund=(*args) ⇒ Object
- #PositionProfit(*args) ⇒ Object
- #PositionProfit=(*args) ⇒ Object
- #PreBalance(*args) ⇒ Object
- #PreBalance=(*args) ⇒ Object
- #PreCredit(*args) ⇒ Object
- #PreCredit=(*args) ⇒ Object
- #PreDeposit(*args) ⇒ Object
- #PreDeposit=(*args) ⇒ Object
- #PreFundMortgageIn(*args) ⇒ Object
- #PreFundMortgageIn=(*args) ⇒ Object
- #PreFundMortgageOut(*args) ⇒ Object
- #PreFundMortgageOut=(*args) ⇒ Object
- #PreMargin(*args) ⇒ Object
- #PreMargin=(*args) ⇒ Object
- #PreMortgage(*args) ⇒ Object
- #PreMortgage=(*args) ⇒ Object
- #Reserve(*args) ⇒ Object
- #Reserve=(*args) ⇒ Object
- #ReserveBalance(*args) ⇒ Object
- #ReserveBalance=(*args) ⇒ Object
- #SettlementID(*args) ⇒ Object
- #SettlementID=(*args) ⇒ Object
- #SpecProductCloseProfit(*args) ⇒ Object
- #SpecProductCloseProfit=(*args) ⇒ Object
- #SpecProductCommission(*args) ⇒ Object
- #SpecProductCommission=(*args) ⇒ Object
- #SpecProductExchangeMargin(*args) ⇒ Object
- #SpecProductExchangeMargin=(*args) ⇒ Object
- #SpecProductFrozenCommission(*args) ⇒ Object
- #SpecProductFrozenCommission=(*args) ⇒ Object
- #SpecProductFrozenMargin(*args) ⇒ Object
- #SpecProductFrozenMargin=(*args) ⇒ Object
- #SpecProductMargin(*args) ⇒ Object
- #SpecProductMargin=(*args) ⇒ Object
- #SpecProductPositionProfit(*args) ⇒ Object
- #SpecProductPositionProfit=(*args) ⇒ Object
- #SpecProductPositionProfitByAlg(*args) ⇒ Object
- #SpecProductPositionProfitByAlg=(*args) ⇒ Object
- #TradingDay(*args) ⇒ Object
- #TradingDay=(*args) ⇒ Object
- #Withdraw(*args) ⇒ Object
- #Withdraw=(*args) ⇒ Object
- #WithdrawQuota(*args) ⇒ Object
- #WithdrawQuota=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
53344 53345 53346 53347 53348 53349 53350 53351 53352 53353 53354 53355 53356 53357 |
# File 'ext/ctp/ctp.cxx', line 53344
SWIGINTERN VALUE
_wrap_new_CThostFtdcSyncingTradingAccountField(int argc, VALUE *argv, VALUE self) {
const char *classname SWIGUNUSED = "Ctp::CThostFtdcSyncingTradingAccountField";
CThostFtdcSyncingTradingAccountField *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (CThostFtdcSyncingTradingAccountField *)new CThostFtdcSyncingTradingAccountField();
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#AccountID(*args) ⇒ Object
50953 50954 50955 50956 50957 50958 50959 50960 50961 50962 50963 50964 50965 50966 50967 50968 50969 50970 50971 50972 50973 50974 50975 50976 50977 50978 50979 50980 |
# File 'ext/ctp/ctp.cxx', line 50953
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_AccountID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (char *) ((arg1)->AccountID);
{
size_t size = SWIG_strnlen(result, 13);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#AccountID=(*args) ⇒ Object
50923 50924 50925 50926 50927 50928 50929 50930 50931 50932 50933 50934 50935 50936 50937 50938 50939 50940 50941 50942 50943 50944 50945 50946 50947 50948 50949 50950 |
# File 'ext/ctp/ctp.cxx', line 50923
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_AccountID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","AccountID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 13);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [13]","AccountID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->AccountID,arg2,13*sizeof(char));
else memset(arg1->AccountID,0,13*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Available(*args) ⇒ Object
51966 51967 51968 51969 51970 51971 51972 51973 51974 51975 51976 51977 51978 51979 51980 51981 51982 51983 51984 51985 51986 51987 |
# File 'ext/ctp/ctp.cxx', line 51966
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Available_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Available", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Available);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Available=(*args) ⇒ Object
51937 51938 51939 51940 51941 51942 51943 51944 51945 51946 51947 51948 51949 51950 51951 51952 51953 51954 51955 51956 51957 51958 51959 51960 51961 51962 51963 |
# File 'ext/ctp/ctp.cxx', line 51937
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Available_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Available", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Available", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Available = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Balance(*args) ⇒ Object
51913 51914 51915 51916 51917 51918 51919 51920 51921 51922 51923 51924 51925 51926 51927 51928 51929 51930 51931 51932 51933 51934 |
# File 'ext/ctp/ctp.cxx', line 51913
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Balance_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Balance", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Balance);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Balance=(*args) ⇒ Object
51884 51885 51886 51887 51888 51889 51890 51891 51892 51893 51894 51895 51896 51897 51898 51899 51900 51901 51902 51903 51904 51905 51906 51907 51908 51909 51910 |
# File 'ext/ctp/ctp.cxx', line 51884
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Balance_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Balance", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Balance", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Balance = arg2;
return Qnil;
fail:
return Qnil;
}
|
#BrokerID(*args) ⇒ Object
50893 50894 50895 50896 50897 50898 50899 50900 50901 50902 50903 50904 50905 50906 50907 50908 50909 50910 50911 50912 50913 50914 50915 50916 50917 50918 50919 50920 |
# File 'ext/ctp/ctp.cxx', line 50893
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_BrokerID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(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
50863 50864 50865 50866 50867 50868 50869 50870 50871 50872 50873 50874 50875 50876 50877 50878 50879 50880 50881 50882 50883 50884 50885 50886 50887 50888 50889 50890 |
# File 'ext/ctp/ctp.cxx', line 50863
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_BrokerID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","BrokerID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(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;
}
|
#CashIn(*args) ⇒ Object
51701 51702 51703 51704 51705 51706 51707 51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 |
# File 'ext/ctp/ctp.cxx', line 51701
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CashIn_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CashIn", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->CashIn);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CashIn=(*args) ⇒ Object
51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 51688 51689 51690 51691 51692 51693 51694 51695 51696 51697 51698 |
# File 'ext/ctp/ctp.cxx', line 51672
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CashIn_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CashIn", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CashIn", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->CashIn = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CloseProfit(*args) ⇒ Object
51807 51808 51809 51810 51811 51812 51813 51814 51815 51816 51817 51818 51819 51820 51821 51822 51823 51824 51825 51826 51827 51828 |
# File 'ext/ctp/ctp.cxx', line 51807
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CloseProfit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CloseProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->CloseProfit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CloseProfit=(*args) ⇒ Object
51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 51792 51793 51794 51795 51796 51797 51798 51799 51800 51801 51802 51803 51804 |
# File 'ext/ctp/ctp.cxx', line 51778
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CloseProfit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CloseProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CloseProfit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->CloseProfit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Commission(*args) ⇒ Object
51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 |
# File 'ext/ctp/ctp.cxx', line 51754
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Commission_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Commission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Commission);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Commission=(*args) ⇒ Object
51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 |
# File 'ext/ctp/ctp.cxx', line 51725
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Commission_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Commission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Commission", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Commission = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Credit(*args) ⇒ Object
52238 52239 52240 52241 52242 52243 52244 52245 52246 52247 52248 52249 52250 52251 52252 52253 52254 52255 52256 52257 52258 52259 |
# File 'ext/ctp/ctp.cxx', line 52238
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Credit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Credit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Credit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Credit=(*args) ⇒ Object
52209 52210 52211 52212 52213 52214 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 |
# File 'ext/ctp/ctp.cxx', line 52209
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Credit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Credit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Credit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Credit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#CurrencyID(*args) ⇒ Object
52557 52558 52559 52560 52561 52562 52563 52564 52565 52566 52567 52568 52569 52570 52571 52572 52573 52574 52575 52576 52577 52578 52579 52580 52581 52582 52583 52584 |
# File 'ext/ctp/ctp.cxx', line 52557
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CurrencyID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (char *) ((arg1)->CurrencyID);
{
size_t size = SWIG_strnlen(result, 4);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#CurrencyID=(*args) ⇒ Object
52527 52528 52529 52530 52531 52532 52533 52534 52535 52536 52537 52538 52539 52540 52541 52542 52543 52544 52545 52546 52547 52548 52549 52550 52551 52552 52553 52554 |
# File 'ext/ctp/ctp.cxx', line 52527
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CurrencyID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[4] ;
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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrencyID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 4);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [4]","CurrencyID", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->CurrencyID,arg2,4*sizeof(char));
else memset(arg1->CurrencyID,0,4*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#CurrMargin(*args) ⇒ Object
51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 |
# File 'ext/ctp/ctp.cxx', line 51648
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CurrMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->CurrMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#CurrMargin=(*args) ⇒ Object
51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 |
# File 'ext/ctp/ctp.cxx', line 51619
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_CurrMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","CurrMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","CurrMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->CurrMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#DeliveryMargin(*args) ⇒ Object
52397 52398 52399 52400 52401 52402 52403 52404 52405 52406 52407 52408 52409 52410 52411 52412 52413 52414 52415 52416 52417 52418 |
# File 'ext/ctp/ctp.cxx', line 52397
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_DeliveryMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","DeliveryMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->DeliveryMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#DeliveryMargin=(*args) ⇒ Object
52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 52391 52392 52393 52394 |
# File 'ext/ctp/ctp.cxx', line 52368
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_DeliveryMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","DeliveryMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","DeliveryMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->DeliveryMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Deposit(*args) ⇒ Object
51383 51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 51394 51395 51396 51397 51398 51399 51400 51401 51402 51403 51404 |
# File 'ext/ctp/ctp.cxx', line 51383
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Deposit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Deposit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Deposit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Deposit=(*args) ⇒ Object
51354 51355 51356 51357 51358 51359 51360 51361 51362 51363 51364 51365 51366 51367 51368 51369 51370 51371 51372 51373 51374 51375 51376 51377 51378 51379 51380 |
# File 'ext/ctp/ctp.cxx', line 51354
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Deposit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Deposit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Deposit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Deposit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExchangeDeliveryMargin(*args) ⇒ Object
52450 52451 52452 52453 52454 52455 52456 52457 52458 52459 52460 52461 52462 52463 52464 52465 52466 52467 52468 52469 52470 52471 |
# File 'ext/ctp/ctp.cxx', line 52450
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_ExchangeDeliveryMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeDeliveryMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->ExchangeDeliveryMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#ExchangeDeliveryMargin=(*args) ⇒ Object
52421 52422 52423 52424 52425 52426 52427 52428 52429 52430 52431 52432 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 |
# File 'ext/ctp/ctp.cxx', line 52421
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_ExchangeDeliveryMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeDeliveryMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeDeliveryMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->ExchangeDeliveryMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ExchangeMargin(*args) ⇒ Object
52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 52358 52359 52360 52361 52362 52363 52364 52365 |
# File 'ext/ctp/ctp.cxx', line 52344
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_ExchangeMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->ExchangeMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#ExchangeMargin=(*args) ⇒ Object
52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 52332 52333 52334 52335 52336 52337 52338 52339 52340 52341 |
# File 'ext/ctp/ctp.cxx', line 52315
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_ExchangeMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ExchangeMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ExchangeMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->ExchangeMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FrozenCash(*args) ⇒ Object
51542 51543 51544 51545 51546 51547 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 |
# File 'ext/ctp/ctp.cxx', line 51542
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FrozenCash_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCash", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->FrozenCash);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FrozenCash=(*args) ⇒ Object
51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 51539 |
# File 'ext/ctp/ctp.cxx', line 51513
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FrozenCash_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCash", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCash", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->FrozenCash = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FrozenCommission(*args) ⇒ Object
51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 |
# File 'ext/ctp/ctp.cxx', line 51595
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FrozenCommission_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCommission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->FrozenCommission);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FrozenCommission=(*args) ⇒ Object
51566 51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 51588 51589 51590 51591 51592 |
# File 'ext/ctp/ctp.cxx', line 51566
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FrozenCommission_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenCommission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenCommission", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->FrozenCommission = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FrozenMargin(*args) ⇒ Object
51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 |
# File 'ext/ctp/ctp.cxx', line 51489
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FrozenMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->FrozenMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FrozenMargin=(*args) ⇒ Object
51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 51479 51480 51481 51482 51483 51484 51485 51486 |
# File 'ext/ctp/ctp.cxx', line 51460
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FrozenMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FrozenMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FrozenMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->FrozenMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FundMortgageAvailable(*args) ⇒ Object
52828 52829 52830 52831 52832 52833 52834 52835 52836 52837 52838 52839 52840 52841 52842 52843 52844 52845 52846 52847 52848 52849 |
# File 'ext/ctp/ctp.cxx', line 52828
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageAvailable_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageAvailable", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->FundMortgageAvailable);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FundMortgageAvailable=(*args) ⇒ Object
52799 52800 52801 52802 52803 52804 52805 52806 52807 52808 52809 52810 52811 52812 52813 52814 52815 52816 52817 52818 52819 52820 52821 52822 52823 52824 52825 |
# File 'ext/ctp/ctp.cxx', line 52799
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageAvailable_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageAvailable", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageAvailable", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->FundMortgageAvailable = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FundMortgageIn(*args) ⇒ Object
52722 52723 52724 52725 52726 52727 52728 52729 52730 52731 52732 52733 52734 52735 52736 52737 52738 52739 52740 52741 52742 52743 |
# File 'ext/ctp/ctp.cxx', line 52722
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageIn_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageIn", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->FundMortgageIn);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FundMortgageIn=(*args) ⇒ Object
52693 52694 52695 52696 52697 52698 52699 52700 52701 52702 52703 52704 52705 52706 52707 52708 52709 52710 52711 52712 52713 52714 52715 52716 52717 52718 52719 |
# File 'ext/ctp/ctp.cxx', line 52693
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageIn_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageIn", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageIn", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->FundMortgageIn = arg2;
return Qnil;
fail:
return Qnil;
}
|
#FundMortgageOut(*args) ⇒ Object
52775 52776 52777 52778 52779 52780 52781 52782 52783 52784 52785 52786 52787 52788 52789 52790 52791 52792 52793 52794 52795 52796 |
# File 'ext/ctp/ctp.cxx', line 52775
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageOut_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageOut", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->FundMortgageOut);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#FundMortgageOut=(*args) ⇒ Object
52746 52747 52748 52749 52750 52751 52752 52753 52754 52755 52756 52757 52758 52759 52760 52761 52762 52763 52764 52765 52766 52767 52768 52769 52770 52771 52772 |
# File 'ext/ctp/ctp.cxx', line 52746
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_FundMortgageOut_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","FundMortgageOut", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","FundMortgageOut", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->FundMortgageOut = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Interest(*args) ⇒ Object
51330 51331 51332 51333 51334 51335 51336 51337 51338 51339 51340 51341 51342 51343 51344 51345 51346 51347 51348 51349 51350 51351 |
# File 'ext/ctp/ctp.cxx', line 51330
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Interest_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Interest", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Interest);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Interest=(*args) ⇒ Object
51301 51302 51303 51304 51305 51306 51307 51308 51309 51310 51311 51312 51313 51314 51315 51316 51317 51318 51319 51320 51321 51322 51323 51324 51325 51326 51327 |
# File 'ext/ctp/ctp.cxx', line 51301
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Interest_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Interest", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Interest", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Interest = arg2;
return Qnil;
fail:
return Qnil;
}
|
#InterestBase(*args) ⇒ Object
51277 51278 51279 51280 51281 51282 51283 51284 51285 51286 51287 51288 51289 51290 51291 51292 51293 51294 51295 51296 51297 51298 |
# File 'ext/ctp/ctp.cxx', line 51277
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_InterestBase_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","InterestBase", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->InterestBase);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#InterestBase=(*args) ⇒ Object
51248 51249 51250 51251 51252 51253 51254 51255 51256 51257 51258 51259 51260 51261 51262 51263 51264 51265 51266 51267 51268 51269 51270 51271 51272 51273 51274 |
# File 'ext/ctp/ctp.cxx', line 51248
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_InterestBase_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","InterestBase", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","InterestBase", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->InterestBase = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Mortgage(*args) ⇒ Object
52291 52292 52293 52294 52295 52296 52297 52298 52299 52300 52301 52302 52303 52304 52305 52306 52307 52308 52309 52310 52311 52312 |
# File 'ext/ctp/ctp.cxx', line 52291
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Mortgage_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Mortgage", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Mortgage);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Mortgage=(*args) ⇒ Object
52262 52263 52264 52265 52266 52267 52268 52269 52270 52271 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 |
# File 'ext/ctp/ctp.cxx', line 52262
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Mortgage_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Mortgage", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Mortgage", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Mortgage = arg2;
return Qnil;
fail:
return Qnil;
}
|
#MortgageableFund(*args) ⇒ Object
52881 52882 52883 52884 52885 52886 52887 52888 52889 52890 52891 52892 52893 52894 52895 52896 52897 52898 52899 52900 52901 52902 |
# File 'ext/ctp/ctp.cxx', line 52881
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_MortgageableFund_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","MortgageableFund", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->MortgageableFund);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#MortgageableFund=(*args) ⇒ Object
52852 52853 52854 52855 52856 52857 52858 52859 52860 52861 52862 52863 52864 52865 52866 52867 52868 52869 52870 52871 52872 52873 52874 52875 52876 52877 52878 |
# File 'ext/ctp/ctp.cxx', line 52852
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_MortgageableFund_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","MortgageableFund", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","MortgageableFund", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->MortgageableFund = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PositionProfit(*args) ⇒ Object
51860 51861 51862 51863 51864 51865 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 51878 51879 51880 51881 |
# File 'ext/ctp/ctp.cxx', line 51860
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PositionProfit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PositionProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PositionProfit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PositionProfit=(*args) ⇒ Object
51831 51832 51833 51834 51835 51836 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 51854 51855 51856 51857 |
# File 'ext/ctp/ctp.cxx', line 51831
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PositionProfit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PositionProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PositionProfit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PositionProfit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreBalance(*args) ⇒ Object
51171 51172 51173 51174 51175 51176 51177 51178 51179 51180 51181 51182 51183 51184 51185 51186 51187 51188 51189 51190 51191 51192 |
# File 'ext/ctp/ctp.cxx', line 51171
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreBalance_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreBalance", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreBalance);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreBalance=(*args) ⇒ Object
51142 51143 51144 51145 51146 51147 51148 51149 51150 51151 51152 51153 51154 51155 51156 51157 51158 51159 51160 51161 51162 51163 51164 51165 51166 51167 51168 |
# File 'ext/ctp/ctp.cxx', line 51142
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreBalance_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreBalance", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreBalance", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreBalance = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreCredit(*args) ⇒ Object
51065 51066 51067 51068 51069 51070 51071 51072 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 |
# File 'ext/ctp/ctp.cxx', line 51065
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreCredit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreCredit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreCredit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreCredit=(*args) ⇒ Object
51036 51037 51038 51039 51040 51041 51042 51043 51044 51045 51046 51047 51048 51049 51050 51051 51052 51053 51054 51055 51056 51057 51058 51059 51060 51061 51062 |
# File 'ext/ctp/ctp.cxx', line 51036
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreCredit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreCredit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreCredit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreCredit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreDeposit(*args) ⇒ Object
51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 51128 51129 51130 51131 51132 51133 51134 51135 51136 51137 51138 51139 |
# File 'ext/ctp/ctp.cxx', line 51118
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreDeposit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreDeposit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreDeposit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreDeposit=(*args) ⇒ Object
51089 51090 51091 51092 51093 51094 51095 51096 51097 51098 51099 51100 51101 51102 51103 51104 51105 51106 51107 51108 51109 51110 51111 51112 51113 51114 51115 |
# File 'ext/ctp/ctp.cxx', line 51089
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreDeposit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreDeposit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreDeposit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreDeposit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreFundMortgageIn(*args) ⇒ Object
52616 52617 52618 52619 52620 52621 52622 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 |
# File 'ext/ctp/ctp.cxx', line 52616
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageIn_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageIn", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreFundMortgageIn);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreFundMortgageIn=(*args) ⇒ Object
52587 52588 52589 52590 52591 52592 52593 52594 52595 52596 52597 52598 52599 52600 52601 52602 52603 52604 52605 52606 52607 52608 52609 52610 52611 52612 52613 |
# File 'ext/ctp/ctp.cxx', line 52587
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageIn_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageIn", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreFundMortgageIn", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreFundMortgageIn = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreFundMortgageOut(*args) ⇒ Object
52669 52670 52671 52672 52673 52674 52675 52676 52677 52678 52679 52680 52681 52682 52683 52684 52685 52686 52687 52688 52689 52690 |
# File 'ext/ctp/ctp.cxx', line 52669
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageOut_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageOut", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreFundMortgageOut);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreFundMortgageOut=(*args) ⇒ Object
52640 52641 52642 52643 52644 52645 52646 52647 52648 52649 52650 52651 52652 52653 52654 52655 52656 52657 52658 52659 52660 52661 52662 52663 52664 52665 52666 |
# File 'ext/ctp/ctp.cxx', line 52640
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreFundMortgageOut_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreFundMortgageOut", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreFundMortgageOut", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreFundMortgageOut = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreMargin(*args) ⇒ Object
51224 51225 51226 51227 51228 51229 51230 51231 51232 51233 51234 51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 |
# File 'ext/ctp/ctp.cxx', line 51224
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreMargin=(*args) ⇒ Object
51195 51196 51197 51198 51199 51200 51201 51202 51203 51204 51205 51206 51207 51208 51209 51210 51211 51212 51213 51214 51215 51216 51217 51218 51219 51220 51221 |
# File 'ext/ctp/ctp.cxx', line 51195
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#PreMortgage(*args) ⇒ Object
51012 51013 51014 51015 51016 51017 51018 51019 51020 51021 51022 51023 51024 51025 51026 51027 51028 51029 51030 51031 51032 51033 |
# File 'ext/ctp/ctp.cxx', line 51012
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreMortgage_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMortgage", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->PreMortgage);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#PreMortgage=(*args) ⇒ Object
50983 50984 50985 50986 50987 50988 50989 50990 50991 50992 50993 50994 50995 50996 50997 50998 50999 51000 51001 51002 51003 51004 51005 51006 51007 51008 51009 |
# File 'ext/ctp/ctp.cxx', line 50983
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_PreMortgage_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","PreMortgage", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","PreMortgage", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->PreMortgage = arg2;
return Qnil;
fail:
return Qnil;
}
|
#Reserve(*args) ⇒ Object
52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 |
# File 'ext/ctp/ctp.cxx', line 52072
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Reserve_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Reserve", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Reserve);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Reserve=(*args) ⇒ Object
52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 |
# File 'ext/ctp/ctp.cxx', line 52043
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Reserve_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Reserve", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Reserve", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Reserve = arg2;
return Qnil;
fail:
return Qnil;
}
|
#ReserveBalance(*args) ⇒ Object
52503 52504 52505 52506 52507 52508 52509 52510 52511 52512 52513 52514 52515 52516 52517 52518 52519 52520 52521 52522 52523 52524 |
# File 'ext/ctp/ctp.cxx', line 52503
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_ReserveBalance_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ReserveBalance", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->ReserveBalance);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#ReserveBalance=(*args) ⇒ Object
52474 52475 52476 52477 52478 52479 52480 52481 52482 52483 52484 52485 52486 52487 52488 52489 52490 52491 52492 52493 52494 52495 52496 52497 52498 52499 52500 |
# File 'ext/ctp/ctp.cxx', line 52474
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_ReserveBalance_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","ReserveBalance", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","ReserveBalance", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->ReserveBalance = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SettlementID(*args) ⇒ Object
52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 52196 52197 52198 52199 52200 52201 52202 52203 52204 52205 52206 |
# File 'ext/ctp/ctp.cxx', line 52185
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SettlementID_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
TThostFtdcSettlementIDType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SettlementID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcSettlementIDType) ((arg1)->SettlementID);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
|
#SettlementID=(*args) ⇒ Object
52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 52171 52172 52173 52174 52175 52176 52177 52178 52179 52180 52181 52182 |
# File 'ext/ctp/ctp.cxx', line 52156
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SettlementID_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ;
TThostFtdcSettlementIDType 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SettlementID", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcSettlementIDType","SettlementID", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcSettlementIDType >(val2);
if (arg1) (arg1)->SettlementID = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductCloseProfit(*args) ⇒ Object
53199 53200 53201 53202 53203 53204 53205 53206 53207 53208 53209 53210 53211 53212 53213 53214 53215 53216 53217 53218 53219 53220 |
# File 'ext/ctp/ctp.cxx', line 53199
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCloseProfit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCloseProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductCloseProfit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductCloseProfit=(*args) ⇒ Object
53170 53171 53172 53173 53174 53175 53176 53177 53178 53179 53180 53181 53182 53183 53184 53185 53186 53187 53188 53189 53190 53191 53192 53193 53194 53195 53196 |
# File 'ext/ctp/ctp.cxx', line 53170
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCloseProfit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCloseProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductCloseProfit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductCloseProfit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductCommission(*args) ⇒ Object
53040 53041 53042 53043 53044 53045 53046 53047 53048 53049 53050 53051 53052 53053 53054 53055 53056 53057 53058 53059 53060 53061 |
# File 'ext/ctp/ctp.cxx', line 53040
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCommission_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCommission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductCommission);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductCommission=(*args) ⇒ Object
53011 53012 53013 53014 53015 53016 53017 53018 53019 53020 53021 53022 53023 53024 53025 53026 53027 53028 53029 53030 53031 53032 53033 53034 53035 53036 53037 |
# File 'ext/ctp/ctp.cxx', line 53011
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductCommission_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductCommission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductCommission", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductCommission = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductExchangeMargin(*args) ⇒ Object
53305 53306 53307 53308 53309 53310 53311 53312 53313 53314 53315 53316 53317 53318 53319 53320 53321 53322 53323 53324 53325 53326 |
# File 'ext/ctp/ctp.cxx', line 53305
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductExchangeMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductExchangeMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductExchangeMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductExchangeMargin=(*args) ⇒ Object
53276 53277 53278 53279 53280 53281 53282 53283 53284 53285 53286 53287 53288 53289 53290 53291 53292 53293 53294 53295 53296 53297 53298 53299 53300 53301 53302 |
# File 'ext/ctp/ctp.cxx', line 53276
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductExchangeMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductExchangeMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductExchangeMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductExchangeMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductFrozenCommission(*args) ⇒ Object
53093 53094 53095 53096 53097 53098 53099 53100 53101 53102 53103 53104 53105 53106 53107 53108 53109 53110 53111 53112 53113 53114 |
# File 'ext/ctp/ctp.cxx', line 53093
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenCommission_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenCommission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductFrozenCommission);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductFrozenCommission=(*args) ⇒ Object
53064 53065 53066 53067 53068 53069 53070 53071 53072 53073 53074 53075 53076 53077 53078 53079 53080 53081 53082 53083 53084 53085 53086 53087 53088 53089 53090 |
# File 'ext/ctp/ctp.cxx', line 53064
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenCommission_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenCommission", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductFrozenCommission", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductFrozenCommission = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductFrozenMargin(*args) ⇒ Object
52987 52988 52989 52990 52991 52992 52993 52994 52995 52996 52997 52998 52999 53000 53001 53002 53003 53004 53005 53006 53007 53008 |
# File 'ext/ctp/ctp.cxx', line 52987
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductFrozenMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductFrozenMargin=(*args) ⇒ Object
52958 52959 52960 52961 52962 52963 52964 52965 52966 52967 52968 52969 52970 52971 52972 52973 52974 52975 52976 52977 52978 52979 52980 52981 52982 52983 52984 |
# File 'ext/ctp/ctp.cxx', line 52958
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductFrozenMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductFrozenMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductFrozenMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductFrozenMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductMargin(*args) ⇒ Object
52934 52935 52936 52937 52938 52939 52940 52941 52942 52943 52944 52945 52946 52947 52948 52949 52950 52951 52952 52953 52954 52955 |
# File 'ext/ctp/ctp.cxx', line 52934
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductMargin_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductMargin);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductMargin=(*args) ⇒ Object
52905 52906 52907 52908 52909 52910 52911 52912 52913 52914 52915 52916 52917 52918 52919 52920 52921 52922 52923 52924 52925 52926 52927 52928 52929 52930 52931 |
# File 'ext/ctp/ctp.cxx', line 52905
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductMargin_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductMargin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductMargin", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductMargin = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductPositionProfit(*args) ⇒ Object
53146 53147 53148 53149 53150 53151 53152 53153 53154 53155 53156 53157 53158 53159 53160 53161 53162 53163 53164 53165 53166 53167 |
# File 'ext/ctp/ctp.cxx', line 53146
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfit_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductPositionProfit);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductPositionProfit=(*args) ⇒ Object
53117 53118 53119 53120 53121 53122 53123 53124 53125 53126 53127 53128 53129 53130 53131 53132 53133 53134 53135 53136 53137 53138 53139 53140 53141 53142 53143 |
# File 'ext/ctp/ctp.cxx', line 53117
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfit_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfit", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductPositionProfit", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductPositionProfit = arg2;
return Qnil;
fail:
return Qnil;
}
|
#SpecProductPositionProfitByAlg(*args) ⇒ Object
53252 53253 53254 53255 53256 53257 53258 53259 53260 53261 53262 53263 53264 53265 53266 53267 53268 53269 53270 53271 53272 53273 |
# File 'ext/ctp/ctp.cxx', line 53252
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfitByAlg_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfitByAlg", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->SpecProductPositionProfitByAlg);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#SpecProductPositionProfitByAlg=(*args) ⇒ Object
53223 53224 53225 53226 53227 53228 53229 53230 53231 53232 53233 53234 53235 53236 53237 53238 53239 53240 53241 53242 53243 53244 53245 53246 53247 53248 53249 |
# File 'ext/ctp/ctp.cxx', line 53223
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_SpecProductPositionProfitByAlg_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","SpecProductPositionProfitByAlg", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","SpecProductPositionProfitByAlg", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->SpecProductPositionProfitByAlg = arg2;
return Qnil;
fail:
return Qnil;
}
|
#TradingDay(*args) ⇒ Object
52126 52127 52128 52129 52130 52131 52132 52133 52134 52135 52136 52137 52138 52139 52140 52141 52142 52143 52144 52145 52146 52147 52148 52149 52150 52151 52152 52153 |
# File 'ext/ctp/ctp.cxx', line 52126
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_TradingDay_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (char *) ((arg1)->TradingDay);
{
size_t size = SWIG_strnlen(result, 9);
vresult = SWIG_FromCharPtrAndSize(result, size);
}
return vresult;
fail:
return Qnil;
}
|
#TradingDay=(*args) ⇒ Object
52096 52097 52098 52099 52100 52101 52102 52103 52104 52105 52106 52107 52108 52109 52110 52111 52112 52113 52114 52115 52116 52117 52118 52119 52120 52121 52122 52123 |
# File 'ext/ctp/ctp.cxx', line 52096
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_TradingDay_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 0 ;
char *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
char temp2[9] ;
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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","TradingDay", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
res2 = SWIG_AsCharArray(argv[0], temp2, 9);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [9]","TradingDay", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(temp2);
if (arg2) memcpy(arg1->TradingDay,arg2,9*sizeof(char));
else memset(arg1->TradingDay,0,9*sizeof(char));
return Qnil;
fail:
return Qnil;
}
|
#Withdraw(*args) ⇒ Object
51436 51437 51438 51439 51440 51441 51442 51443 51444 51445 51446 51447 51448 51449 51450 51451 51452 51453 51454 51455 51456 51457 |
# File 'ext/ctp/ctp.cxx', line 51436
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Withdraw_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Withdraw", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->Withdraw);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#Withdraw=(*args) ⇒ Object
51407 51408 51409 51410 51411 51412 51413 51414 51415 51416 51417 51418 51419 51420 51421 51422 51423 51424 51425 51426 51427 51428 51429 51430 51431 51432 51433 |
# File 'ext/ctp/ctp.cxx', line 51407
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_Withdraw_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","Withdraw", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Withdraw", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->Withdraw = arg2;
return Qnil;
fail:
return Qnil;
}
|
#WithdrawQuota(*args) ⇒ Object
52019 52020 52021 52022 52023 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 52034 52035 52036 52037 52038 52039 52040 |
# File 'ext/ctp/ctp.cxx', line 52019
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_WithdrawQuota_get(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","WithdrawQuota", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
result = (TThostFtdcMoneyType) ((arg1)->WithdrawQuota);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
|
#WithdrawQuota=(*args) ⇒ Object
51990 51991 51992 51993 51994 51995 51996 51997 51998 51999 52000 52001 52002 52003 52004 52005 52006 52007 52008 52009 52010 52011 52012 52013 52014 52015 52016 |
# File 'ext/ctp/ctp.cxx', line 51990
SWIGINTERN VALUE
_wrap_CThostFtdcSyncingTradingAccountField_WithdrawQuota_set(int argc, VALUE *argv, VALUE self) {
CThostFtdcSyncingTradingAccountField *arg1 = (CThostFtdcSyncingTradingAccountField *) 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_CThostFtdcSyncingTradingAccountField, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcSyncingTradingAccountField *","WithdrawQuota", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcSyncingTradingAccountField * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","WithdrawQuota", 2, argv[0] ));
}
arg2 = static_cast< TThostFtdcMoneyType >(val2);
if (arg1) (arg1)->WithdrawQuota = arg2;
return Qnil;
fail:
return Qnil;
}
|