Skip to content

Commit

Permalink
mm: Minor UI fixes
Browse files Browse the repository at this point in the history
The number of booked orders was not being updated on the UI page, and the
profit/loss was not being limited to 2 decimals.
  • Loading branch information
martonp committed Aug 12, 2024
1 parent 1efedb4 commit dc17b93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/webserver/site/src/js/mm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class Bot extends BotMarket {
Doc.setVis(running, tmpl.profitLossBox)
Doc.setVis(!running, tmpl.allocateBttnBox)
if (runStats) {
tmpl.profitLoss.textContent = Doc.formatFourSigFigs(runStats.profitLoss.profit)
tmpl.profitLoss.textContent = Doc.formatFourSigFigs(runStats.profitLoss.profit, 2)
}
}

Expand Down Expand Up @@ -785,5 +785,6 @@ class Bot extends BotMarket {
handleRunStats () {
this.updateDisplay()
this.updateTableRow()
this.runDisplay.readBook()
}
}

0 comments on commit dc17b93

Please sign in to comment.