Skip to content

Commit

Permalink
ITBit: Fix fatal error on second run
Browse files Browse the repository at this point in the history
This fix removes incorrect config pair delimiter, because it would be
re-inserted into config the first run, and then error the second time.

This delimiter doesn't match the config we have.
There's no implementation of fetching pairs, so what's in config files
now is all that matters
  • Loading branch information
gbjk committed Dec 13, 2023
1 parent 6926b72 commit 1661fb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/itbit/itbit_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (i *ItBit) SetDefaults() {
i.API.CredentialsValidator.RequiresSecret = true

requestFmt := &currency.PairFormat{Uppercase: true}
configFmt := &currency.PairFormat{Uppercase: true, Delimiter: currency.DashDelimiter}
configFmt := &currency.PairFormat{Uppercase: true}
err := i.SetGlobalPairsManager(requestFmt, configFmt, asset.Spot)
if err != nil {
log.Errorln(log.ExchangeSys, err)
Expand Down

0 comments on commit 1661fb0

Please sign in to comment.