/* * Copyright (c) 2019~2023, hikyuu.org * * History: * 1. 20231231 added by fasiondog */ #include #include "pybind_utils.h" #include "bind_stl.h" using namespace hku; namespace py = pybind11; // pybind 默认会将 vector 和 list 互转,数据量过大的情况下会影响性能 // 只考虑引出影响可能性能的类型 void export_bind_stl(py::module& m) { // py::bind_vector(m, "PriceList"); // py::bind_vector(m, "StringList"); py::bind_vector(m, "DatetimeList"); py::bind_vector(m, "KRecordList"); // py::bind_vector(m, "StockList"); py::bind_vector(m, "StockWeightList"); // py::bind_vector(m, "Indicatorist"); py::bind_vector(m, "TimeLineList"); py::bind_vector(m, "TransList"); // py::bind_vector(m, "BorrowRecordList"); // py::bind_vector(m, "LoanRecordList"); py::bind_vector(m, "PositionRecordList"); // py::bind_vector(m, "FundsList"); py::bind_vector(m, "TradeRecordList"); py::bind_vector(m, "SystemWeightList"); // py::bind_vector(m, "SystemList"); py::bind_vector(m, "ScoreRecordList"); }