Class: Ctp::CThostFtdcMdSpi
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcMdSpi
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #initialize(*args) ⇒ Object constructor
- #OnFrontConnected(*args) ⇒ Object
- #OnFrontDisconnected(*args) ⇒ Object
- #OnHeartBeatWarning(*args) ⇒ Object
- #OnRspError(*args) ⇒ Object
- #OnRspSubForQuoteRsp(*args) ⇒ Object
- #OnRspSubMarketData(*args) ⇒ Object
- #OnRspUnSubForQuoteRsp(*args) ⇒ Object
- #OnRspUnSubMarketData(*args) ⇒ Object
- #OnRspUserLogin(*args) ⇒ Object
- #OnRspUserLogout(*args) ⇒ Object
- #OnRtnDepthMarketData(*args) ⇒ Object
- #OnRtnForQuoteRsp(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
192221 192222 192223 192224 192225 192226 192227 192228 192229 192230 192231 192232 192233 192234 192235 192236 192237 192238 192239 192240 192241 192242 |
# File 'ext/ctp/ctp.cxx', line 192221
SWIGINTERN VALUE
_wrap_new_CThostFtdcMdSpi(int argc, VALUE *argv, VALUE self) {
VALUE arg1 = (VALUE) 0 ;
const char *classname SWIGUNUSED = "Ctp::CThostFtdcMdSpi";
CThostFtdcMdSpi *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
arg1 = self;
if ( strcmp(rb_obj_classname(self), classname) != 0 ) {
/* subclassed */
result = (CThostFtdcMdSpi *)new SwigDirector_CThostFtdcMdSpi(arg1);
} else {
result = (CThostFtdcMdSpi *)new CThostFtdcMdSpi();
}
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#OnFrontConnected(*args) ⇒ Object
191550 191551 191552 191553 191554 191555 191556 191557 191558 191559 191560 191561 191562 191563 191564 191565 191566 191567 191568 191569 191570 191571 191572 191573 191574 191575 191576 191577 191578 191579 191580 191581 |
# File 'ext/ctp/ctp.cxx', line 191550
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnFrontConnected(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
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_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnFrontConnected", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnFrontConnected();
} else {
(arg1)->OnFrontConnected();
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnFrontDisconnected(*args) ⇒ Object
191584 191585 191586 191587 191588 191589 191590 191591 191592 191593 191594 191595 191596 191597 191598 191599 191600 191601 191602 191603 191604 191605 191606 191607 191608 191609 191610 191611 191612 191613 191614 191615 191616 191617 191618 191619 191620 191621 191622 191623 |
# File 'ext/ctp/ctp.cxx', line 191584
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnFrontDisconnected(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
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_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnFrontDisconnected", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OnFrontDisconnected", 2, argv[0] ));
}
arg2 = static_cast< int >(val2);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnFrontDisconnected(arg2);
} else {
(arg1)->OnFrontDisconnected(arg2);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnHeartBeatWarning(*args) ⇒ Object
191626 191627 191628 191629 191630 191631 191632 191633 191634 191635 191636 191637 191638 191639 191640 191641 191642 191643 191644 191645 191646 191647 191648 191649 191650 191651 191652 191653 191654 191655 191656 191657 191658 191659 191660 191661 191662 191663 191664 191665 |
# File 'ext/ctp/ctp.cxx', line 191626
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnHeartBeatWarning(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
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_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnHeartBeatWarning", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OnHeartBeatWarning", 2, argv[0] ));
}
arg2 = static_cast< int >(val2);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnHeartBeatWarning(arg2);
} else {
(arg1)->OnHeartBeatWarning(arg2);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspError(*args) ⇒ Object
191800 191801 191802 191803 191804 191805 191806 191807 191808 191809 191810 191811 191812 191813 191814 191815 191816 191817 191818 191819 191820 191821 191822 191823 191824 191825 191826 191827 191828 191829 191830 191831 191832 191833 191834 191835 191836 191837 191838 191839 191840 191841 191842 191843 191844 191845 191846 191847 191848 191849 191850 191851 191852 191853 191854 191855 |
# File 'ext/ctp/ctp.cxx', line 191800
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspError(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcRspInfoField *arg2 = (CThostFtdcRspInfoField *) 0 ;
int arg3 ;
bool arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int val3 ;
int ecode3 = 0 ;
bool val4 ;
int ecode4 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspError", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspError", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcRspInfoField * >(argp2);
ecode3 = SWIG_AsVal_int(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","OnRspError", 3, argv[1] ));
}
arg3 = static_cast< int >(val3);
ecode4 = SWIG_AsVal_bool(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","OnRspError", 4, argv[2] ));
}
arg4 = static_cast< bool >(val4);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspError(arg2,arg3,arg4);
} else {
(arg1)->OnRspError(arg2,arg3,arg4);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspSubForQuoteRsp(*args) ⇒ Object
191990 191991 191992 191993 191994 191995 191996 191997 191998 191999 192000 192001 192002 192003 192004 192005 192006 192007 192008 192009 192010 192011 192012 192013 192014 192015 192016 192017 192018 192019 192020 192021 192022 192023 192024 192025 192026 192027 192028 192029 192030 192031 192032 192033 192034 192035 192036 192037 192038 192039 192040 192041 192042 192043 192044 192045 192046 192047 192048 192049 192050 192051 192052 192053 |
# File 'ext/ctp/ctp.cxx', line 191990
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspSubForQuoteRsp(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ;
CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ;
int arg4 ;
bool arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool val5 ;
int ecode5 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspSubForQuoteRsp", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspSubForQuoteRsp", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspSubForQuoteRsp", 3, argv[1] ));
}
arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspSubForQuoteRsp", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspSubForQuoteRsp", 5, argv[3] ));
}
arg5 = static_cast< bool >(val5);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspSubForQuoteRsp(arg2,arg3,arg4,arg5);
} else {
(arg1)->OnRspSubForQuoteRsp(arg2,arg3,arg4,arg5);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspSubMarketData(*args) ⇒ Object
191858 191859 191860 191861 191862 191863 191864 191865 191866 191867 191868 191869 191870 191871 191872 191873 191874 191875 191876 191877 191878 191879 191880 191881 191882 191883 191884 191885 191886 191887 191888 191889 191890 191891 191892 191893 191894 191895 191896 191897 191898 191899 191900 191901 191902 191903 191904 191905 191906 191907 191908 191909 191910 191911 191912 191913 191914 191915 191916 191917 191918 191919 191920 191921 |
# File 'ext/ctp/ctp.cxx', line 191858
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspSubMarketData(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ;
CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ;
int arg4 ;
bool arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool val5 ;
int ecode5 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspSubMarketData", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspSubMarketData", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspSubMarketData", 3, argv[1] ));
}
arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspSubMarketData", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspSubMarketData", 5, argv[3] ));
}
arg5 = static_cast< bool >(val5);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspSubMarketData(arg2,arg3,arg4,arg5);
} else {
(arg1)->OnRspSubMarketData(arg2,arg3,arg4,arg5);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspUnSubForQuoteRsp(*args) ⇒ Object
192056 192057 192058 192059 192060 192061 192062 192063 192064 192065 192066 192067 192068 192069 192070 192071 192072 192073 192074 192075 192076 192077 192078 192079 192080 192081 192082 192083 192084 192085 192086 192087 192088 192089 192090 192091 192092 192093 192094 192095 192096 192097 192098 192099 192100 192101 192102 192103 192104 192105 192106 192107 192108 192109 192110 192111 192112 192113 192114 192115 192116 192117 192118 192119 |
# File 'ext/ctp/ctp.cxx', line 192056
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspUnSubForQuoteRsp(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ;
CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ;
int arg4 ;
bool arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool val5 ;
int ecode5 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUnSubForQuoteRsp", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspUnSubForQuoteRsp", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUnSubForQuoteRsp", 3, argv[1] ));
}
arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUnSubForQuoteRsp", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUnSubForQuoteRsp", 5, argv[3] ));
}
arg5 = static_cast< bool >(val5);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspUnSubForQuoteRsp(arg2,arg3,arg4,arg5);
} else {
(arg1)->OnRspUnSubForQuoteRsp(arg2,arg3,arg4,arg5);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspUnSubMarketData(*args) ⇒ Object
191924 191925 191926 191927 191928 191929 191930 191931 191932 191933 191934 191935 191936 191937 191938 191939 191940 191941 191942 191943 191944 191945 191946 191947 191948 191949 191950 191951 191952 191953 191954 191955 191956 191957 191958 191959 191960 191961 191962 191963 191964 191965 191966 191967 191968 191969 191970 191971 191972 191973 191974 191975 191976 191977 191978 191979 191980 191981 191982 191983 191984 191985 191986 191987 |
# File 'ext/ctp/ctp.cxx', line 191924
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspUnSubMarketData(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcSpecificInstrumentField *arg2 = (CThostFtdcSpecificInstrumentField *) 0 ;
CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ;
int arg4 ;
bool arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool val5 ;
int ecode5 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUnSubMarketData", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcSpecificInstrumentField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcSpecificInstrumentField *","OnRspUnSubMarketData", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcSpecificInstrumentField * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUnSubMarketData", 3, argv[1] ));
}
arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUnSubMarketData", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUnSubMarketData", 5, argv[3] ));
}
arg5 = static_cast< bool >(val5);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspUnSubMarketData(arg2,arg3,arg4,arg5);
} else {
(arg1)->OnRspUnSubMarketData(arg2,arg3,arg4,arg5);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspUserLogin(*args) ⇒ Object
191668 191669 191670 191671 191672 191673 191674 191675 191676 191677 191678 191679 191680 191681 191682 191683 191684 191685 191686 191687 191688 191689 191690 191691 191692 191693 191694 191695 191696 191697 191698 191699 191700 191701 191702 191703 191704 191705 191706 191707 191708 191709 191710 191711 191712 191713 191714 191715 191716 191717 191718 191719 191720 191721 191722 191723 191724 191725 191726 191727 191728 191729 191730 191731 |
# File 'ext/ctp/ctp.cxx', line 191668
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspUserLogin(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcRspUserLoginField *arg2 = (CThostFtdcRspUserLoginField *) 0 ;
CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ;
int arg4 ;
bool arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool val5 ;
int ecode5 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUserLogin", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcRspUserLoginField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcRspUserLoginField *","OnRspUserLogin", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcRspUserLoginField * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserLogin", 3, argv[1] ));
}
arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserLogin", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserLogin", 5, argv[3] ));
}
arg5 = static_cast< bool >(val5);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspUserLogin(arg2,arg3,arg4,arg5);
} else {
(arg1)->OnRspUserLogin(arg2,arg3,arg4,arg5);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRspUserLogout(*args) ⇒ Object
191734 191735 191736 191737 191738 191739 191740 191741 191742 191743 191744 191745 191746 191747 191748 191749 191750 191751 191752 191753 191754 191755 191756 191757 191758 191759 191760 191761 191762 191763 191764 191765 191766 191767 191768 191769 191770 191771 191772 191773 191774 191775 191776 191777 191778 191779 191780 191781 191782 191783 191784 191785 191786 191787 191788 191789 191790 191791 191792 191793 191794 191795 191796 191797 |
# File 'ext/ctp/ctp.cxx', line 191734
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRspUserLogout(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcUserLogoutField *arg2 = (CThostFtdcUserLogoutField *) 0 ;
CThostFtdcRspInfoField *arg3 = (CThostFtdcRspInfoField *) 0 ;
int arg4 ;
bool arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int val4 ;
int ecode4 = 0 ;
bool val5 ;
int ecode5 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRspUserLogout", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcUserLogoutField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcUserLogoutField *","OnRspUserLogout", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcUserLogoutField * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_CThostFtdcRspInfoField, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "CThostFtdcRspInfoField *","OnRspUserLogout", 3, argv[1] ));
}
arg3 = reinterpret_cast< CThostFtdcRspInfoField * >(argp3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OnRspUserLogout", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
ecode5 = SWIG_AsVal_bool(argv[3], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","OnRspUserLogout", 5, argv[3] ));
}
arg5 = static_cast< bool >(val5);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRspUserLogout(arg2,arg3,arg4,arg5);
} else {
(arg1)->OnRspUserLogout(arg2,arg3,arg4,arg5);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRtnDepthMarketData(*args) ⇒ Object
192122 192123 192124 192125 192126 192127 192128 192129 192130 192131 192132 192133 192134 192135 192136 192137 192138 192139 192140 192141 192142 192143 192144 192145 192146 192147 192148 192149 192150 192151 192152 192153 192154 192155 192156 192157 192158 192159 192160 192161 |
# File 'ext/ctp/ctp.cxx', line 192122
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRtnDepthMarketData(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcDepthMarketDataField *arg2 = (CThostFtdcDepthMarketDataField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
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_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRtnDepthMarketData", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcDepthMarketDataField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcDepthMarketDataField *","OnRtnDepthMarketData", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcDepthMarketDataField * >(argp2);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRtnDepthMarketData(arg2);
} else {
(arg1)->OnRtnDepthMarketData(arg2);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|
#OnRtnForQuoteRsp(*args) ⇒ Object
192164 192165 192166 192167 192168 192169 192170 192171 192172 192173 192174 192175 192176 192177 192178 192179 192180 192181 192182 192183 192184 192185 192186 192187 192188 192189 192190 192191 192192 192193 192194 192195 192196 192197 192198 192199 192200 192201 192202 192203 |
# File 'ext/ctp/ctp.cxx', line 192164
SWIGINTERN VALUE
_wrap_CThostFtdcMdSpi_OnRtnForQuoteRsp(int argc, VALUE *argv, VALUE self) {
CThostFtdcMdSpi *arg1 = (CThostFtdcMdSpi *) 0 ;
CThostFtdcForQuoteRspField *arg2 = (CThostFtdcForQuoteRspField *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
Swig::Director *director = 0;
bool upcall = false;
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_CThostFtdcMdSpi, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMdSpi *","OnRtnForQuoteRsp", 1, self ));
}
arg1 = reinterpret_cast< CThostFtdcMdSpi * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_CThostFtdcForQuoteRspField, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "CThostFtdcForQuoteRspField *","OnRtnForQuoteRsp", 2, argv[0] ));
}
arg2 = reinterpret_cast< CThostFtdcForQuoteRspField * >(argp2);
director = dynamic_cast<Swig::Director *>(arg1);
upcall = (director && (director->swig_get_self() == self));
try {
if (upcall) {
(arg1)->CThostFtdcMdSpi::OnRtnForQuoteRsp(arg2);
} else {
(arg1)->OnRtnForQuoteRsp(arg2);
}
} catch (Swig::DirectorException& e) {
rb_exc_raise(e.getError());
SWIG_fail;
}
return Qnil;
fail:
return Qnil;
}
|