Bugfix: Bitstamp race condition and ANX format directive issue (#342)

* Fix issue for ANX live testing, incorrect format directive

* Used cpy of Balances as param for Bitstamp function, added space for ANX fatal error.

* Fix linter issue

* Drop struct field for balance and localised a variable in each individual getfee call as needed
This commit is contained in:
Ryan O'Hara-Reid
2019-08-26 15:06:50 +10:00
committed by Adrian Gallagher
parent 6d8ba0a96a
commit c191dfc666
3 changed files with 20 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
cfg.LoadConfig("../../testdata/configtest.json")
anxConfig, err := cfg.GetExchangeConfig("ANX")
if err != nil {
log.Fatalf("Test Failed - ANX Setup() init error", err)
log.Fatal("Test Failed - ANX Setup() init error ", err)
}
anxConfig.AuthenticatedAPISupport = true
anxConfig.APIKey = apiKey