Update TradeManager.cpp

fix bug,获取funds截止日期错误。
This commit is contained in:
xiyandd 2022-04-22 19:55:27 +08:00 committed by GitHub
parent 4a87ea78c6
commit fe3f406524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {