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();
|
2019-12-15 01:25:00 +08:00
|
|
|
void export_TimeDelta();
|
2015-01-07 01:26:14 +08:00
|
|
|
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
|
|
|
|
2020-06-25 15:59:37 +08:00
|
|
|
void export_data_driver_main();
|
|
|
|
void export_indicator_main();
|
|
|
|
void export_instance_main();
|
|
|
|
void export_trade_manage_main();
|
|
|
|
void export_trade_sys_main();
|
2018-08-26 18:47:06 +08:00
|
|
|
|
2020-06-25 15:59:37 +08:00
|
|
|
BOOST_PYTHON_MODULE(core) {
|
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();
|
2019-12-15 01:25:00 +08:00
|
|
|
export_TimeDelta();
|
2015-01-07 01:26:14 +08:00
|
|
|
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
|
|
|
|
2020-06-25 15:59:37 +08:00
|
|
|
export_data_driver_main();
|
|
|
|
export_indicator_main();
|
|
|
|
export_instance_main();
|
|
|
|
|
|
|
|
export_trade_sys_main();
|
|
|
|
export_trade_manage_main(); // must after export_trade_sys_main
|
|
|
|
|
2018-08-30 02:38:13 +08:00
|
|
|
export_io_redirect();
|
2015-01-07 01:26:14 +08:00
|
|
|
}
|