Skip to content

Commit

Permalink
Merge pull request #313 from northwesternfintech/capital
Browse files Browse the repository at this point in the history
Changed capital to initial capital in bot container
  • Loading branch information
stevenewald committed Oct 15, 2024
2 parents 718b9b8 + db60ca0 commit 22445a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchange/src/exchange/bots/bot_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BotContainer::generate_orders(
common::decimal_quantity cumulative_quantity_held{};

for (const auto& bot : bots_) {
cumulative_interest_limit += bot->get_portfolio().get_capital();
cumulative_interest_limit += bot->get_portfolio().get_initial_capital();
cumulative_quantity_held += bot->get_portfolio().get_holdings(bot->get_ticker());
}

Expand Down

0 comments on commit 22445a3

Please sign in to comment.