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 authored Oct 15, 2024
2 parents 718b9b8 + db60ca0 commit a88a33e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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
2 changes: 0 additions & 2 deletions web/app/dash/submit/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export default function SubmissionForm(props: { user: any }) {
});

const onSubmit: SubmitHandler<Inputs> = async data => {
Swal.fire({title: "Under maintenance", text: "We are deploying a bugfix, please check back tomorrow morning"});
return;
const responsePromise = fetch("/api/protected/db/user/createAlgo", {
method: "POST",
body: JSON.stringify(data),
Expand Down

0 comments on commit a88a33e

Please sign in to comment.