Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
krakenExchange logs better error message when trading pair is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsaraf committed Mar 25, 2019
1 parent feee8bb commit 807139f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/krakenExchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ func getFieldValue(object krakenapi.BalanceResponse, fieldName string) float64 {
func (k *krakenExchange) GetOrderConstraints(pair *model.TradingPair) *model.OrderConstraints {
constraints, ok := krakenPrecisionMatrix[*pair]
if !ok {
log.Printf("krakenExchange could not find orderConstraints for trading pair %v, returning nil\n", pair)
return nil
panic(fmt.Sprintf("krakenExchange could not find orderConstraints for trading pair %v. Try using the \"ccxt-kraken\" integration instead.", pair))
}
return &constraints
}
Expand Down

0 comments on commit 807139f

Please sign in to comment.