Hikyuu
|
当前资产情况记录,由TradeManager::getFunds返回 更多...
#include <FundsRecord.h>
Public 成员函数 | |
FundsRecord () | |
FundsRecord (price_t cash, price_t market_value, price_t short_market_value, price_t base_cash, price_t base_asset, price_t borrow_cash, price_t borrow_asset) | |
Public 属性 | |
price_t | cash |
当前现金 更多... | |
price_t | market_value |
当前多头市值 更多... | |
price_t | short_market_value |
当前空头仓位市值 更多... | |
price_t | base_cash |
当前投入本金principal 更多... | |
price_t | base_asset |
当前投入的资产价值 更多... | |
price_t | borrow_cash |
当前借入的资金,即负债 更多... | |
price_t | borrow_asset |
当前借入证券资产价值 更多... | |
友元 | |
class | boost::serialization::access |
当前资产情况记录,由TradeManager::getFunds返回
hku::FundsRecord::FundsRecord | ( | ) |
hku::FundsRecord::FundsRecord | ( | price_t | cash, |
price_t | market_value, | ||
price_t | short_market_value, | ||
price_t | base_cash, | ||
price_t | base_asset, | ||
price_t | borrow_cash, | ||
price_t | borrow_asset | ||
) |
|
friend |
price_t hku::FundsRecord::base_asset |
当前投入的资产价值
price_t hku::FundsRecord::base_cash |
当前投入本金principal
price_t hku::FundsRecord::borrow_asset |
当前借入证券资产价值
price_t hku::FundsRecord::borrow_cash |
当前借入的资金,即负债
price_t hku::FundsRecord::cash |
当前现金
price_t hku::FundsRecord::market_value |
当前多头市值
price_t hku::FundsRecord::short_market_value |
当前空头仓位市值