hikyuu2/hikyuu_pywrap/trade_manage/_build_in.cpp

41 lines
1.1 KiB
C++
Raw Normal View History

2015-01-07 01:26:14 +08:00
/*
* _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() {
2016-04-14 01:36:53 +08:00
def("crtTM", crtTM, (arg("datetime") = Datetime(199001010000LL),
2016-05-10 01:33:39 +08:00
arg("initCash") = 100000, arg("costFunc") = TC_Zero(),
2016-04-14 01:36:53 +08:00
arg("name")="SYS"));
2016-04-18 19:54:42 +08:00
def("TC_TestStub", TC_TestStub);
2015-01-07 01:26:14 +08:00
2016-05-05 02:56:45 +08:00
def("TC_FixedA", TC_FixedA, (arg("commission") = 0.0018,
2016-04-14 01:36:53 +08:00
arg("lowest_commission") = 5.0,
arg("stamptax") = 0.001,
arg("transferfee") = 0.001,
arg("lowest_transferfee") = 1.0));
2016-05-05 02:56:45 +08:00
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));
2016-04-18 19:54:42 +08:00
def("TC_Zero", TC_Zero);
2015-01-07 01:26:14 +08:00
}