Refactor: Set paper trade notifications to priority 1

This commit is contained in:
2026-03-15 21:19:56 -07:00
parent 2948312619
commit 7ba11ecdcb

View File

@@ -160,7 +160,7 @@ export class PaperEngine {
const msg = `📝 PAPER [${trade.strategy}] ${trade.side.toUpperCase()} @ ${trade.price}¢ ($${cost}) | ${trade.reason}`;
console.log(`[Paper] ${msg}`);
await notify(msg, `Paper: ${trade.strategy}`);
await notify(msg, `Paper: ${trade.strategy}`, '1');
return trade;
}
@@ -224,7 +224,7 @@ export class PaperEngine {
const emoji = won ? '✅' : '❌';
const msg = `${emoji} [${strategyName}] ${side.toUpperCase()} ${won ? 'WON' : 'LOST'} | PnL: $${pnl.toFixed(2)} | Bal: $${acct.balance.toFixed(2)}`;
console.log(`[Paper] ${msg}`);
await notify(msg, won ? `${strategyName} Win!` : `${strategyName} Loss`);
await notify(msg, won ? `${strategyName} Win!` : `${strategyName} Loss`, '1');
allSettled.push(pos);
}