Skip to content

Commit

Permalink
fixup! Exchanges: Rename StoreAssetPairStore
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Dec 4, 2024
1 parent 272827a commit 942b49b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/exchange_template/wrapper_file.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@ func ({{.Variable}} *{{.CapitalName}}) SetDefaults() {
// can use this example below:

fmt1 := currency.PairStore{
AssetEnabled: true,
AssetEnabled: true,
RequestFormat: &currency.PairFormat{Uppercase: true},
ConfigFormat: &currency.PairFormat{Uppercase: true},
}

fmt2 := currency.PairStore{
AssetEnabled: true,
AssetEnabled: true,
RequestFormat: &currency.PairFormat{Uppercase: true},
ConfigFormat: &currency.PairFormat{Uppercase: true, Delimiter: ":"},
}

err = {{.Variable}}.StoreAssetPairStore(asset.Spot, fmt1)
if err != nil {
log.Errorf(log.ExchangeSys, "%s error storing `%s` default asset formats: %s", {{.Variable}}.Name, asset.Spot, err)
log.Errorf(log.ExchangeSys, "%s error storing `%s` default asset formats: %s", {{.Variable}}.Name, asset.Spot, err)
}
err = {{.Variable}}.StoreAssetPairStore(asset.Margin, fmt2)
if err != nil {
log.Errorf(log.ExchangeSys, "%s error storing `%s` default asset formats: %s", {{.Variable}}.Name, asset.Margin, err)
log.Errorf(log.ExchangeSys, "%s error storing `%s` default asset formats: %s", {{.Variable}}.Name, asset.Margin, err)
}

// Fill out the capabilities/features that the exchange supports
Expand Down

0 comments on commit 942b49b

Please sign in to comment.