Skip to content

Commit

Permalink
refactor(kraken): move limit action type
Browse files Browse the repository at this point in the history
  • Loading branch information
Primexz committed May 21, 2024
1 parent 5cf9807 commit 45cb404
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions kraken/const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package kraken

type LimitPurchaseAction int32

const (
NOTHING LimitPurchaseAction = 0
INCREASE_LIMIT_ADJUSTMENT LimitPurchaseAction = 1
)
7 changes: 0 additions & 7 deletions kraken/purchase.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ import (
"github.com/primexz/KrakenDCA/notification"
)

type LimitPurchaseAction int32

const (
NOTHING LimitPurchaseAction = 0
INCREASE_LIMIT_ADJUSTMENT LimitPurchaseAction = 1
)

func (k *KrakenApi) BuyBtc() {
if config.LimitOrderMode {
limitAdjustment := 0.0
Expand Down

0 comments on commit 45cb404

Please sign in to comment.