mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 02:48:57 +08:00
Update TradeManager.cpp
fix bug,获取funds截止日期错误。
This commit is contained in:
parent
4a87ea78c6
commit
fe3f406524
@ -1191,7 +1191,7 @@ FundsRecord TradeManager::getFunds(const Datetime& indatetime, KQuery::KType kty
|
||||
// HKU_IF_RETURN(indatetime == Null<Datetime>() || indatetime == lastDatetime(),
|
||||
// getFunds(ktype));
|
||||
|
||||
Datetime datetime(indatetime.year(), indatetime.month(), indatetime.day(), 11, 59);
|
||||
Datetime datetime(indatetime.year(), indatetime.month(), indatetime.day(), 23, 59);
|
||||
price_t market_value = 0.0;
|
||||
price_t short_market_value = 0.0;
|
||||
if (datetime > lastDatetime()) {
|
||||
|
Loading…
Reference in New Issue
Block a user