Introduce request package and integrate with exchanges

This commit is contained in:
Ryan O'Hara-Reid
2018-03-27 14:05:15 +11:00
committed by Adrian Gallagher
parent 52dfddbb18
commit 7fc9d20fd7
52 changed files with 1990 additions and 1544 deletions

View File

@@ -127,23 +127,23 @@ func TestGetExchangeStatus(t *testing.T) {
// }
// }
func TestUpdateTicker(t *testing.T) {
t.Parallel()
p := pair.NewCurrencyPairFromString("BTC_JPY")
_, err := b.UpdateTicker(p, "SPOT")
if err != nil {
t.Error("test failed - Bitflyer - UpdateTicker() error:", err)
}
}
func TestUpdateOrderbook(t *testing.T) {
t.Parallel()
p := pair.NewCurrencyPairFromString("BTC_JPY")
_, err := b.UpdateOrderbook(p, "SPOT")
if err != nil {
t.Error("test failed - Bitflyer - UpdateOrderbook() error:", err)
}
}
// func TestUpdateTicker(t *testing.T) {
// t.Parallel()
// p := pair.NewCurrencyPairFromString("BTC_JPY")
// _, err := b.UpdateTicker(p, "SPOT")
// if err != nil {
// t.Error("test failed - Bitflyer - UpdateTicker() error:", err)
// }
// }
//
// func TestUpdateOrderbook(t *testing.T) {
// t.Parallel()
// p := pair.NewCurrencyPairFromString("BTC_JPY")
// _, err := b.UpdateOrderbook(p, "SPOT")
// if err != nil {
// t.Error("test failed - Bitflyer - UpdateOrderbook() error:", err)
// }
// }
func TestCheckFXString(t *testing.T) {
t.Parallel()