Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/fasiondog/hikyuu into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
fasiondog committed Apr 22, 2022
2 parents 9de2354 + b8d7a68 commit e1813ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hikyuu_cpp/hikyuu/trade_manage/TradeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
3 changes: 2 additions & 1 deletion hikyuu_cpp/unit_test/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ target("small-test")
if is_plat("linux") or is_plat("macosx") then
add_links("boost_unit_test_framework")
add_links("boost_filesystem")
add_links("boost_atomic")
add_shflags("-Wl,-rpath=$ORIGIN", "-Wl,-rpath=$ORIGIN/../lib")
end

Expand All @@ -121,4 +122,4 @@ target("small-test")
add_files("./hikyuu/test_main.cpp")

after_run(coverage_report)
target_end()
target_end()

0 comments on commit e1813ce

Please sign in to comment.