mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 23:16:51 +00:00
exchange_wrapper_coverage: deploy context value, fix panics (#1119)
* exchange_wrapper_coverage: deploy context value, fix panics at the disco. * wrap_cov: skip ftx impl. protect racey result map, reset verbosity when random wrapper functions are called. * fixed ocd trigger sequence * triggernometry eased Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
@@ -182,12 +182,17 @@ func (by *Bybit) SetDefaults() {
|
||||
|
||||
// Setup takes in the supplied exchange configuration details and sets params
|
||||
func (by *Bybit) Setup(exch *config.Exchange) error {
|
||||
err := exch.Validate()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !exch.Enabled {
|
||||
by.SetEnabled(false)
|
||||
return nil
|
||||
}
|
||||
|
||||
err := by.SetupDefaults(exch)
|
||||
err = by.SetupDefaults(exch)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user