Skip to content

Commit

Permalink
Deribit: Remove custom GetDefaultConfig
Browse files Browse the repository at this point in the history
Moved to exchange base by thrasher-corp#1472
  • Loading branch information
gbjk committed Sep 18, 2024
1 parent 6bf31e8 commit 21d180f
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions exchanges/deribit/deribit_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,6 @@ import (
"github.com/thrasher-corp/gocryptotrader/portfolio/withdraw"
)

// GetDefaultConfig returns a default exchange config
func (d *Deribit) GetDefaultConfig(ctx context.Context) (*config.Exchange, error) {
d.SetDefaults()
exchCfg, err := d.GetStandardConfig()
if err != nil {
return nil, err
}

err = d.SetupDefaults(exchCfg)
if err != nil {
return nil, err
}
if d.Features.Supports.RESTCapabilities.AutoPairUpdates {
err := d.UpdateTradablePairs(ctx, true)
if err != nil {
return nil, err
}
}
return exchCfg, nil
}

// SetDefaults sets the basic defaults for Deribit
func (d *Deribit) SetDefaults() {
d.Name = "Deribit"
Expand Down

0 comments on commit 21d180f

Please sign in to comment.