mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 20:08:26 +08:00
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/*
|
|
* _build_in.cpp
|
|
*
|
|
* Created on: 2013-2-14
|
|
* Author: fasiondog
|
|
*/
|
|
|
|
#include <boost/python.hpp>
|
|
#include <hikyuu/trade_manage/build_in.h>
|
|
|
|
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);
|
|
}
|
|
|