Class: Ctp::CThostFtdcMarketDataLastMatchField
- Inherits:
-
Object
- Object
- Ctp::CThostFtdcMarketDataLastMatchField
- Defined in:
- ext/ctp/ctp.cxx
Instance Method Summary collapse
- #initialize(*args) ⇒ Object constructor
- #LastPrice(*args) ⇒ Object
- #LastPrice=(*args) ⇒ Object
- #OpenInterest(*args) ⇒ Object
- #OpenInterest=(*args) ⇒ Object
- #Turnover(*args) ⇒ Object
- #Turnover=(*args) ⇒ Object
- #Volume(*args) ⇒ Object
- #Volume=(*args) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Object
99892 99893 99894 99895 99896 99897 99898 99899 99900 99901 99902 99903 99904 99905 |
# File 'ext/ctp/ctp.cxx', line 99892 SWIGINTERN VALUE _wrap_new_CThostFtdcMarketDataLastMatchField(int argc, VALUE *argv, VALUE self) { const char *classname SWIGUNUSED = "Ctp::CThostFtdcMarketDataLastMatchField"; CThostFtdcMarketDataLastMatchField *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (CThostFtdcMarketDataLastMatchField *)new CThostFtdcMarketDataLastMatchField(); DATA_PTR(self) = result; return self; fail: return Qnil; } |
Instance Method Details
#LastPrice(*args) ⇒ Object
99694 99695 99696 99697 99698 99699 99700 99701 99702 99703 99704 99705 99706 99707 99708 99709 99710 99711 99712 99713 99714 99715 |
# File 'ext/ctp/ctp.cxx', line 99694 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_LastPrice_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcPriceType result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcPriceType) ((arg1)->LastPrice); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#LastPrice=(*args) ⇒ Object
99665 99666 99667 99668 99669 99670 99671 99672 99673 99674 99675 99676 99677 99678 99679 99680 99681 99682 99683 99684 99685 99686 99687 99688 99689 99690 99691 |
# File 'ext/ctp/ctp.cxx', line 99665 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_LastPrice_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcPriceType arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","LastPrice", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcPriceType","LastPrice", 2, argv[0] )); } arg2 = static_cast< TThostFtdcPriceType >(val2); if (arg1) (arg1)->LastPrice = arg2; return Qnil; fail: return Qnil; } |
#OpenInterest(*args) ⇒ Object
99853 99854 99855 99856 99857 99858 99859 99860 99861 99862 99863 99864 99865 99866 99867 99868 99869 99870 99871 99872 99873 99874 |
# File 'ext/ctp/ctp.cxx', line 99853 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_OpenInterest_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcLargeVolumeType) ((arg1)->OpenInterest); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#OpenInterest=(*args) ⇒ Object
99824 99825 99826 99827 99828 99829 99830 99831 99832 99833 99834 99835 99836 99837 99838 99839 99840 99841 99842 99843 99844 99845 99846 99847 99848 99849 99850 |
# File 'ext/ctp/ctp.cxx', line 99824 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_OpenInterest_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcLargeVolumeType 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","OpenInterest", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcLargeVolumeType","OpenInterest", 2, argv[0] )); } arg2 = static_cast< TThostFtdcLargeVolumeType >(val2); if (arg1) (arg1)->OpenInterest = arg2; return Qnil; fail: return Qnil; } |
#Turnover(*args) ⇒ Object
99800 99801 99802 99803 99804 99805 99806 99807 99808 99809 99810 99811 99812 99813 99814 99815 99816 99817 99818 99819 99820 99821 |
# File 'ext/ctp/ctp.cxx', line 99800 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Turnover_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcMoneyType) ((arg1)->Turnover); vresult = SWIG_From_double(static_cast< double >(result)); return vresult; fail: return Qnil; } |
#Turnover=(*args) ⇒ Object
99771 99772 99773 99774 99775 99776 99777 99778 99779 99780 99781 99782 99783 99784 99785 99786 99787 99788 99789 99790 99791 99792 99793 99794 99795 99796 99797 |
# File 'ext/ctp/ctp.cxx', line 99771 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Turnover_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 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_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Turnover", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcMoneyType","Turnover", 2, argv[0] )); } arg2 = static_cast< TThostFtdcMoneyType >(val2); if (arg1) (arg1)->Turnover = arg2; return Qnil; fail: return Qnil; } |
#Volume(*args) ⇒ Object
99747 99748 99749 99750 99751 99752 99753 99754 99755 99756 99757 99758 99759 99760 99761 99762 99763 99764 99765 99766 99767 99768 |
# File 'ext/ctp/ctp.cxx', line 99747 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Volume_get(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; void *argp1 = 0 ; int res1 = 0 ; TThostFtdcVolumeType result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); result = (TThostFtdcVolumeType) ((arg1)->Volume); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; } |
#Volume=(*args) ⇒ Object
99718 99719 99720 99721 99722 99723 99724 99725 99726 99727 99728 99729 99730 99731 99732 99733 99734 99735 99736 99737 99738 99739 99740 99741 99742 99743 99744 |
# File 'ext/ctp/ctp.cxx', line 99718 SWIGINTERN VALUE _wrap_CThostFtdcMarketDataLastMatchField_Volume_set(int argc, VALUE *argv, VALUE self) { CThostFtdcMarketDataLastMatchField *arg1 = (CThostFtdcMarketDataLastMatchField *) 0 ; TThostFtdcVolumeType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; if ((argc < 1) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CThostFtdcMarketDataLastMatchField, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CThostFtdcMarketDataLastMatchField *","Volume", 1, self )); } arg1 = reinterpret_cast< CThostFtdcMarketDataLastMatchField * >(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "TThostFtdcVolumeType","Volume", 2, argv[0] )); } arg2 = static_cast< TThostFtdcVolumeType >(val2); if (arg1) (arg1)->Volume = arg2; return Qnil; fail: return Qnil; } |