Skip to content

Commit 519ac5a

Browse files
committed
Downgrade some errors to warn
1 parent b6da3e3 commit 519ac5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/trader/trader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ function checkTradingData(signal: Signal, source: SourceType): TradingData {
827827
// Check if strategy has hit the losing trade limit
828828
if (!strategy || strategy.isStopped) {
829829
const logMessage = `Skipping signal as strategy for ${getLogName(signal)} has been stopped, toggle the trade flag in the NBT Hub to restart it.`
830-
logger.error(logMessage)
830+
logger.warn(logMessage)
831831
throw logMessage
832832
}
833833

@@ -837,14 +837,14 @@ function checkTradingData(signal: Signal, source: SourceType): TradingData {
837837
// So until we have a unique ID that is provided on the signal and NBT Hub can track them correctly, we're just going to have to ignore concurrent trades and treat this as a continuation
838838
if (tradeOpen) {
839839
const logMessage = `Skipping signal as an existing open trade was already found for ${getLogName(signal)}.`
840-
logger.error(logMessage)
840+
logger.warn(logMessage)
841841
throw logMessage
842842
}
843843
break
844844
case EntryType.EXIT:
845845
// If this is supposed to be a trade exit, check the trade was actually open
846846
if (!tradeOpen) {
847-
logger.error(logTradeOpenNone)
847+
logger.warn(logTradeOpenNone)
848848
throw logTradeOpenNone
849849
}
850850

0 commit comments

Comments
 (0)