Skip to content

Commit

Permalink
chore: move next order log
Browse files Browse the repository at this point in the history
  • Loading branch information
Primexz committed May 12, 2024
1 parent 8e40ef2 commit 0f38462
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,14 @@ func (b *Bot) run() {

if b.initialRun {
b.calculateTimeOfNextOrder()
b.logNextOrder()
}

if (b.timeOfNextOrder.Before(time.Now()) || newFiatMoney) && !b.initialRun {
log.Info("Placing bitcoin purchase order. ₿")

kraken.BuyBtc(0)
b.calculateTimeOfNextOrder()
b.logNextOrder()
}
}

func (b *Bot) logNextOrder() {
log.Info("Next order in", fmtDuration(time.Until(b.timeOfNextOrder)))
}

0 comments on commit 0f38462

Please sign in to comment.