/* * _build_in.cpp * * Created on: 2013-2-14 * Author: fasiondog */ #include #include using namespace boost::python; using namespace hku; void export_build_in() { def("crtTM", crtTM, (arg("datetime") = Datetime(199001010000LL), arg("initCash") = 100000, arg("costFunc") = TC_Zero(), arg("name")="SYS")); def("TC_TestStub", TC_TestStub); def("TC_FixedA", TC_FixedA, (arg("commission") = 0.0018, arg("lowest_commission") = 5.0, arg("stamptax") = 0.001, arg("transferfee") = 0.001, arg("lowest_transferfee") = 1.0)); def("TC_FixedA2015", TC_FixedA2015, (arg("commission") = 0.0018, arg("lowest_commission") = 5.0, arg("stamptax") = 0.001, arg("transferfee") = 0.00002)); def("TC_FixedA2017", TC_FixedA2017, (arg("commission") = 0.0018, arg("lowest_commission") = 5.0, arg("stamptax") = 0.001, arg("transferfee") = 0.00002)); def("TC_Zero", TC_Zero); }