StockWeight支持从数据库获取最新数据(continue)

This commit is contained in:
fasiondog 2020-10-27 00:01:40 +08:00
parent fc20ba4c3f
commit 5d8794e529
2 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,7 @@ Stock::Data::Data()
m_valid(default_valid),
m_startDate(default_startDate),
m_lastDate(default_lastDate),
m_lastUpdateWeight(Datetime::min()),
m_tick(default_tick),
m_tickValue(default_tickValue),
m_unit(default_unit),
@ -75,6 +76,7 @@ Stock::Data::Data(const string& market, const string& code, const string& name,
m_valid(valid),
m_startDate(startDate),
m_lastDate(lastDate),
m_lastUpdateWeight(Datetime::min()),
m_tick(tick),
m_tickValue(tickValue),
m_precision(precision),

View File

@ -222,6 +222,7 @@ struct HKU_API Stock::Data {
Datetime m_lastDate; //证券最后日期
StockWeightList m_weightList; //权息信息列表
Datetime m_lastUpdateWeight; //上次更新权息列表缓存的时刻
price_t m_tick;
price_t m_tickValue;