Hikyuu
Public 成员函数 | Public 属性 | 友元 | 所有成员列表

交易记录 更多...

#include <TradeRecord.h>

hku::TradeRecord 的协作图:
Collaboration graph
[图例]

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 class boost::serialization::access
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

止损价


该类的文档由以下文件生成: