mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 15:11:03 +00:00
sharedtestvalues: Add helper functions and implement throughout exchange tests (#1163)
* exchanges/sharedtestvalues: implement new functions to handle test skipping and announcements for standardising. * exchanges: fin test impl. * linter: fixes * exchange_template: fix test * allocate so it doesn't make a panic at the disco * glorious: nits * glorious: nits * Update exchanges/sharedtestvalues/sharedtestvalues.go Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * Update exchanges/sharedtestvalues/sharedtestvalues.go Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * glorious: nits * linter: fix * linter: shhhh --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io> Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1758,8 +1758,8 @@ func (by *Bybit) GetFeeByType(_ context.Context, _ *exchange.FeeBuilder) (float6
|
||||
return 0, common.ErrNotYetImplemented
|
||||
}
|
||||
|
||||
// ValidateCredentials validates current credentials used for wrapper
|
||||
func (by *Bybit) ValidateCredentials(ctx context.Context, assetType asset.Item) error {
|
||||
// ValidateAPICredentials validates current credentials used for wrapper
|
||||
func (by *Bybit) ValidateAPICredentials(ctx context.Context, assetType asset.Item) error {
|
||||
_, err := by.UpdateAccountInfo(ctx, assetType)
|
||||
return by.CheckTransientError(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user