Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xywanz authored Jun 15, 2020
1 parent 2af5260 commit caae556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trading_platform/common/portfolio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void Portfolio::update_buy_or_sell(uint32_t ticker_index, uint32_t direction,

if (pos_detail.holdings < pos_detail.yd_holdings) {
spdlog::warn("yd pos fixed");
pos_detail.yd_holdingd = pos_detail.holdings;
pos_detail.yd_holdings = pos_detail.holdings;
}
} else {
pos_detail.open_pending -= traded;
Expand Down

0 comments on commit caae556

Please sign in to comment.