mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 07:26:53 +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:
@@ -74,7 +74,17 @@ type IBotExchange interface {
|
||||
CheckOrderExecutionLimits(a asset.Item, cp currency.Pair, price, amount float64, orderType order.Type) error
|
||||
UpdateOrderExecutionLimits(ctx context.Context, a asset.Item) error
|
||||
GetCredentials(ctx context.Context) (*account.Credentials, error)
|
||||
ValidateCredentials(ctx context.Context, a asset.Item) error
|
||||
|
||||
// ValidateAPICredentials function validates the API keys by sending an
|
||||
// authenticated REST request. See exchange specific wrapper implementation.
|
||||
ValidateAPICredentials(ctx context.Context, a asset.Item) error
|
||||
// VerifyAPICredentials determines if the credentials supplied have unset
|
||||
// required values. See exchanges/credentials.go Base method for
|
||||
// implementation.
|
||||
VerifyAPICredentials(creds *account.Credentials) error
|
||||
// GetDefaultCredentials returns the exchange.Base api credentials loaded by
|
||||
// config.json. See exchanges/credentials.go Base method for implementation.
|
||||
GetDefaultCredentials() *account.Credentials
|
||||
|
||||
FunctionalityChecker
|
||||
AccountManagement
|
||||
|
||||
Reference in New Issue
Block a user