From fe3f406524a77f350eae23ab2c515b49de9a1049 Mon Sep 17 00:00:00 2001 From: xiyandd <70990254+xiyandd@users.noreply.github.com> Date: Fri, 22 Apr 2022 19:55:27 +0800 Subject: [PATCH] Update TradeManager.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix bug,获取funds截止日期错误。 --- hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp b/hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp index 0aff7177..13234fc7 100644 --- a/hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp +++ b/hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp @@ -1191,7 +1191,7 @@ FundsRecord TradeManager::getFunds(const Datetime& indatetime, KQuery::KType kty // HKU_IF_RETURN(indatetime == Null() || 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()) {