mirror of
https://github.com/multipleof4/KalBot.git
synced 2026-03-16 21:41:02 +00:00
Refactor: Set paper trade notifications to priority 1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user