hikyuu2/hikyuu_cpp/hikyuu/trade_manage/imp/ZeroTradeCost.cpp

35 lines
790 B
C++

/*
* ZeroTradeCost.cpp
*
* Created on: 2013-3-3
* Author: fasiondog
*/
#include "ZeroTradeCost.h"
namespace hku {
ZeroTradeCost::ZeroTradeCost() : TradeCostBase("TC_Zero") {}
ZeroTradeCost::~ZeroTradeCost() {}
CostRecord ZeroTradeCost ::getBuyCost(const Datetime& datetime, const Stock& stock, price_t price,
double num) const {
return CostRecord();
}
CostRecord ZeroTradeCost ::getSellCost(const Datetime& datetime, const Stock& stock, price_t price,
double num) const {
return CostRecord();
}
TradeCostPtr ZeroTradeCost::_clone() {
return TradeCostPtr(new ZeroTradeCost());
}
TradeCostPtr HKU_API TC_Zero() {
return TradeCostPtr(new ZeroTradeCost());
}
} /* namespace hku */