Skip to content

Commit

Permalink
fixup! Huobi: Add V2 websocket support
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Oct 30, 2024
1 parent 804892b commit da3bb41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exchanges/huobi/huobi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1958,9 +1958,9 @@ func TestSubscribe(t *testing.T) {
}

func TestChannelName(t *testing.T) {
s := &subscription.Subscription{Channel: subscription.CandlesChannel}
assert.Equal(t, "x", channelName(s, btcusdPair))
t.Error("more to come")
assert.Equal(t, "market.BTC-USD.kline", channelName(&subscription.Subscription{Channel: subscription.CandlesChannel}, btcusdPair))
assert.Equal(t, "trade.clearing#BTC-USD#1", channelName(&subscription.Subscription{Channel: subscription.MyOrdersChannel}, btcusdPair))
assert.Panics(t, func() { channelName(&subscription.Subscription{Channel: wsOrderbookChannel}, btcusdPair) })
}

func TestGetErrResp(t *testing.T) {
Expand Down

0 comments on commit da3bb41

Please sign in to comment.