Skip to content

Commit

Permalink
fix(maker_fee): adjust order check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Primexz committed May 9, 2024
1 parent a3b49b1 commit 5060c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kraken/kraken_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 5060c64

Please sign in to comment.