Stop logging the autoLiq floor for every account
One line per account on every sync, which on a multi-firm instance buries anything worth reading in `pm2 logs autofirmer`. The threshold is still recorded on the client and still drives the dead-account checks; it just is not narrated any more. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
be8c628778
commit
9d777cb2c6
@@ -283,9 +283,6 @@ export class TradovateClient {
|
|||||||
const isSentinel = limit >= 999999999;
|
const isSentinel = limit >= 999999999;
|
||||||
const floor = (!isSentinel && limit > 0 && drawdown > 0) ? limit - drawdown : 0;
|
const floor = (!isSentinel && limit > 0 && drawdown > 0) ? limit - drawdown : 0;
|
||||||
this.autoLiqThresholds[accountId] = floor;
|
this.autoLiqThresholds[accountId] = floor;
|
||||||
if (floor > 0) {
|
|
||||||
console.log(`[autoLiq] account ${accountId} → floor $${floor} (hwm=$${limit} drawdown=$${drawdown})`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.accountList = ((response.accounts ?? []) as AccountItem[]).map((account) => {
|
this.accountList = ((response.accounts ?? []) as AccountItem[]).map((account) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user