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

51 lines
1.2 KiB
C++
Raw Normal View History

2015-01-07 01:26:14 +08:00
/*
* ZeroTradeCost.h
*
* Created on: 2013-3-3
* Author: fasiondog
*/
#pragma once
2015-01-07 01:26:14 +08:00
#ifndef ZEROTRADECOST_H_
#define ZEROTRADECOST_H_
#include "../TradeCostBase.h"
namespace hku {
class HKU_API ZeroTradeCost: public TradeCostBase {
TRADE_COST_NO_PRIVATE_MEMBER_SERIALIZATION
public:
ZeroTradeCost();
virtual ~ZeroTradeCost();
/**
*
* @param datetime
* @param stock
* @param price
* @param num
* @return CostRecord
*/
virtual CostRecord getBuyCost(const Datetime& datetime,
const Stock& stock, price_t price, size_t num) const;
/**
*
* @param datetime
* @param stock
* @param price
* @param num
* @return CostRecord
*/
virtual CostRecord getSellCost(const Datetime& datetime,
const Stock& stock, price_t price, size_t num) const;
/** 子类私有变量克隆接口 */
virtual TradeCostPtr _clone();
};
} /* namespace hku */
#endif /* ZEROTRADECOST_H_ */