From 5060c64160b5158282f14b6de65f1b862c47197f Mon Sep 17 00:00:00 2001 From: Primexz Date: Thu, 9 May 2024 23:49:32 +0200 Subject: [PATCH] fix(maker_fee): adjust order check logic --- kraken/kraken_api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kraken/kraken_api.go b/kraken/kraken_api.go index 1d24526..8778978 100644 --- a/kraken/kraken_api.go +++ b/kraken/kraken_api.go @@ -116,17 +116,17 @@ func BuyBtc(_retry_do_not_use int) { if orderStatus == "closed" { log.Info("Order successfully executed") - break + break // don't return to send notification and log } if orderStatus == "canceled" && order.Reason == "User requested" { log.Info("Order canceled by user") - break + return } if orderStatus == "canceled" { log.Info("Unknown reason for order cancelation.") - break + return } if orderStatus == "canceled" && order.Reason == "Post only order" {