mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 07:26:48 +00:00
38 lines
580 B
Go
38 lines
580 B
Go
package coinut
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/thrasher-/gocryptotrader/config"
|
|
)
|
|
|
|
const (
|
|
apiKey = ""
|
|
apiSecret = ""
|
|
)
|
|
|
|
var c COINUT
|
|
|
|
func TestSetDefaults(t *testing.T) {
|
|
c.SetDefaults()
|
|
}
|
|
|
|
func TestSetup(t *testing.T) {
|
|
exch := config.ExchangeConfig{}
|
|
c.Setup(exch)
|
|
|
|
exch.Enabled = true
|
|
exch.APIKey = apiKey
|
|
exch.APISecret = apiSecret
|
|
c.Setup(exch)
|
|
}
|
|
|
|
// func TestGetInstruments(t *testing.T) {
|
|
// c.Verbose = true
|
|
// resp, err := c.GetInstruments()
|
|
// if err == nil {
|
|
// t.Error("Test failed - GetInstruments() error", err)
|
|
// }
|
|
// log.Println(resp)
|
|
// }
|