mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 07:26:47 +00:00
Asset package update (#581)
* Rewrite new function and deploy where we can minimise the chance of setting an asset type that is different to supported list - sets validation to exact supported list * change wording
This commit is contained in:
@@ -23,5 +23,6 @@ func validExchange(exch string) bool {
|
||||
}
|
||||
|
||||
func validAsset(i string) bool {
|
||||
return asset.IsValid(asset.Item(i))
|
||||
_, err := asset.New(i)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user