Skip to content

Commit 77c9f4f

Browse files
committed
Fixed bug with close trade source type
1 parent 5acc5e7 commit 77c9f4f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [1.2.0] (2021-09-27)
1+
## [1.2.0] (2021-09-28)
22

33
### Bug Fixes
44

@@ -9,6 +9,7 @@
99
* **trader:** changed auto-balancing warning to 5% to reduce log spam.
1010
* **trader:** stop small trades from blocking auto-balancing.
1111
* **trader:** clear loss trade run when manually resuming a strategy.
12+
* **trader:** correct source type for manual close from NBT Hub.
1213

1314
### Features
1415

src/trader/trader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ export async function onCloseTradedSignal(signalJson: SignalJson, timestamp: Dat
648648
logSignal(signal, "close")
649649

650650
// Add the trade signal to the queue because we want each signal to process before the next comes
651-
queue.add(() => trade(signal, SourceType.SIGNAL)).catch((reason) => {
651+
queue.add(() => trade(signal, SourceType.MANUAL)).catch((reason) => {
652652
// This was rejected before the trade even started
653653
if (!checkFailedCloseTrade(signal)) {
654654
// User tried to close an open trade and it could not be processed

0 commit comments

Comments
 (0)