2015-01-07 01:26:14 +08:00
|
|
|
/*
|
|
|
|
* main.cpp
|
|
|
|
*
|
|
|
|
* Created on: 2011-12-4
|
|
|
|
* Author: fasiondog
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <boost/python.hpp>
|
|
|
|
#include <hikyuu/hikyuu.h>
|
|
|
|
|
|
|
|
void export_DataType();
|
|
|
|
void export_Constant();
|
|
|
|
void export_util();
|
2019-02-11 15:20:43 +08:00
|
|
|
void export_log();
|
2015-01-07 01:26:14 +08:00
|
|
|
void export_Datetime();
|
|
|
|
void export_StockManager();
|
|
|
|
void export_Stock();
|
2016-04-03 00:08:31 +08:00
|
|
|
void export_Block();
|
2015-01-07 01:26:14 +08:00
|
|
|
void export_MarketInfo();
|
|
|
|
void export_StockTypeInfo();
|
|
|
|
void export_StockWeight();
|
|
|
|
void export_KQuery();
|
|
|
|
void export_KReord();
|
2019-02-08 22:41:20 +08:00
|
|
|
void export_TimeLineReord();
|
2019-02-11 21:13:06 +08:00
|
|
|
void export_TransRecord();
|
2015-01-07 01:26:14 +08:00
|
|
|
void export_KData();
|
|
|
|
void export_Parameter();
|
|
|
|
void export_save_load();
|
2018-08-30 02:38:13 +08:00
|
|
|
void export_io_redirect();
|
2015-01-07 01:26:14 +08:00
|
|
|
|
|
|
|
BOOST_PYTHON_MODULE(_hikyuu){
|
2018-08-26 18:47:06 +08:00
|
|
|
boost::python::docstring_options doc_options(false);
|
|
|
|
|
2015-01-07 01:26:14 +08:00
|
|
|
boost::python::def("hikyuu_init", hku::hikyuu_init);
|
2016-04-03 00:08:31 +08:00
|
|
|
boost::python::def("getStock", hku::getStock);
|
2018-09-10 02:21:19 +08:00
|
|
|
boost::python::def("getVersion", hku::getVersion);
|
2015-01-07 01:26:14 +08:00
|
|
|
|
|
|
|
export_DataType();
|
|
|
|
export_Constant();
|
|
|
|
export_util();
|
2019-02-11 15:20:43 +08:00
|
|
|
export_log();
|
2015-01-07 01:26:14 +08:00
|
|
|
export_Datetime();
|
|
|
|
export_MarketInfo();
|
|
|
|
export_StockTypeInfo();
|
|
|
|
export_StockWeight();
|
|
|
|
export_StockManager();
|
|
|
|
export_KQuery();
|
|
|
|
export_KReord();
|
2019-02-08 22:41:20 +08:00
|
|
|
export_TimeLineReord();
|
2019-02-11 21:13:06 +08:00
|
|
|
export_TransRecord();
|
2015-01-07 01:26:14 +08:00
|
|
|
export_KData();
|
|
|
|
export_Stock();
|
2016-04-03 00:08:31 +08:00
|
|
|
export_Block();
|
2015-01-07 01:26:14 +08:00
|
|
|
export_Parameter();
|
|
|
|
export_save_load();
|
2018-08-30 02:38:13 +08:00
|
|
|
|
|
|
|
export_io_redirect();
|
2015-01-07 01:26:14 +08:00
|
|
|
}
|
|
|
|
|