Hikyuu
|
交易记录 更多...
#include <TradeRecord.h>
Public 成员函数 | |
TradeRecord () | |
TradeRecord (const Stock &stock, const Datetime &datetime, BUSINESS business, price_t planPrice, price_t realPrice, price_t goalPrice, size_t number, const CostRecord &cost, price_t stoploss, price_t cash, SystemPart from) | |
string | toString () const |
仅用于python的__str__ 更多... | |
Public 属性 | |
Stock | stock |
交易对象 更多... | |
Datetime | datetime |
交易日期 更多... | |
BUSINESS | business |
业务类型 更多... | |
price_t | planPrice |
计划交易价格 更多... | |
price_t | realPrice |
实际交易价格 更多... | |
price_t | goalPrice |
目标价位,如果为0表示未限定目标 更多... | |
size_t | number |
成交数量 更多... | |
CostRecord | cost |
交易成本 更多... | |
price_t | stoploss |
止损价 更多... | |
price_t | cash |
现金余额 更多... | |
SystemPart | from |
辅助记录交易系统部件,区别是哪个部件发出的指示,Null<int>()表示无效 更多... | |
友元 | |
class | boost::serialization::access |
交易记录
hku::TradeRecord::TradeRecord | ( | ) |
hku::TradeRecord::TradeRecord | ( | const Stock & | stock, |
const Datetime & | datetime, | ||
BUSINESS | business, | ||
price_t | planPrice, | ||
price_t | realPrice, | ||
price_t | goalPrice, | ||
size_t | number, | ||
const CostRecord & | cost, | ||
price_t | stoploss, | ||
price_t | cash, | ||
SystemPart | from | ||
) |
string hku::TradeRecord::toString | ( | ) | const |
仅用于python的__str__
|
friend |
BUSINESS hku::TradeRecord::business |
业务类型
price_t hku::TradeRecord::cash |
现金余额
CostRecord hku::TradeRecord::cost |
交易成本
Datetime hku::TradeRecord::datetime |
交易日期
SystemPart hku::TradeRecord::from |
辅助记录交易系统部件,区别是哪个部件发出的指示,Null<int>()表示无效
price_t hku::TradeRecord::goalPrice |
目标价位,如果为0表示未限定目标
size_t hku::TradeRecord::number |
成交数量
price_t hku::TradeRecord::planPrice |
计划交易价格
price_t hku::TradeRecord::realPrice |
实际交易价格
Stock hku::TradeRecord::stock |
交易对象
price_t hku::TradeRecord::stoploss |
止损价