mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-04 04:48:17 +08:00
35 lines
790 B
C++
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 */
|