mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Coinbase error fix, deleting nearly completely unused test file, other minor changes (#191)
This commit is contained in:
committed by
Adrian Gallagher
parent
58096b689c
commit
f4766fb4dd
@@ -90,7 +90,7 @@ func ReloadExchange(name string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// UnloadExchange unloads an exchange by
|
||||
// UnloadExchange unloads an exchange by name
|
||||
func UnloadExchange(name string) error {
|
||||
nameLower := common.StringToLower(name)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ func TestGetFee(t *testing.T) {
|
||||
func TestGetProducts(t *testing.T) {
|
||||
_, err := c.GetProducts()
|
||||
if err != nil {
|
||||
t.Error("Test failed - GetProducts() error")
|
||||
t.Errorf("Test failed - Coinbase, GetProducts() Error: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@ package coinbasepro
|
||||
|
||||
// Product holds product information
|
||||
type Product struct {
|
||||
ID string `json:"id"`
|
||||
BaseCurrency string `json:"base_currency"`
|
||||
QuoteCurrency string `json:"quote_currency"`
|
||||
BaseMinSize float64 `json:"base_min_size,string"`
|
||||
BaseMaxSize int64 `json:"base_max_size,string"`
|
||||
QuoteIncrement float64 `json:"quote_increment,string"`
|
||||
DisplayName string `json:"string"`
|
||||
ID string `json:"id"`
|
||||
BaseCurrency string `json:"base_currency"`
|
||||
QuoteCurrency string `json:"quote_currency"`
|
||||
BaseMinSize float64 `json:"base_min_size,string"`
|
||||
BaseMaxSize interface{} `json:"base_max_size"`
|
||||
QuoteIncrement float64 `json:"quote_increment,string"`
|
||||
DisplayName string `json:"string"`
|
||||
}
|
||||
|
||||
// Ticker holds basic ticker information
|
||||
|
||||
27
main_test.go
27
main_test.go
@@ -1,27 +0,0 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestSetupBotExchanges(t *testing.T) {
|
||||
// setupBotExchanges()
|
||||
}
|
||||
|
||||
func TestMain(t *testing.T) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
func TestAdjustGoMaxProcs(t *testing.T) {
|
||||
AdjustGoMaxProcs()
|
||||
}
|
||||
|
||||
func TestHandleInterrupt(t *testing.T) {
|
||||
HandleInterrupt()
|
||||
}
|
||||
|
||||
func TestShutdown(t *testing.T) {
|
||||
// Nothing
|
||||
}
|
||||
|
||||
func TestSeedExchangeAccountInfo(t *testing.T) {
|
||||
SeedExchangeAccountInfo(GetAllEnabledExchangeAccountInfo().Data)
|
||||
}
|
||||
Reference in New Issue
Block a user