Skip to content

Commit

Permalink
Coinbase error fix, deleting nearly completely unused test file, othe…
Browse files Browse the repository at this point in the history
…r minor changes (thrasher-corp#191)
  • Loading branch information
cranktakular authored and thrasher- committed Oct 12, 2018
1 parent 58096b6 commit f4766fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 36 deletions.
2 changes: 1 addition & 1 deletion exchange.go
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion exchanges/coinbasepro/coinbasepro_test.go
Expand Up @@ -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)
}
}

Expand Down
14 changes: 7 additions & 7 deletions exchanges/coinbasepro/coinbasepro_types.go
Expand Up @@ -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
Expand Down
27 changes: 0 additions & 27 deletions main_test.go

This file was deleted.

0 comments on commit f4766fb

Please sign in to comment.