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 Nov 3, 2024
1 parent 3b37b4a commit c0c226c
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions exchanges/huobi/huobi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1464,29 +1464,6 @@ func TestWsOrderUpdate(t *testing.T) {
}
}

func TestWsOrdersUpdate(t *testing.T) {
pressXToJSON := []byte(`{
"op": "notify",
"ts": 1522856623232,
"topic": "orders.btcusdt.update",
"data": {
"unfilled-amount": "0.000000000000000000",
"filled-amount": "5000.000000000000000000",
"price": "1.662100000000000000",
"order-id": 2039498445,
"symbol": "btcusdt",
"match-id": 94984,
"filled-cash-amount": "8301.357280000000000000",
"role": "taker|maker",
"order-state": "filled",
"client-order-id": "a0001",
"order-type": "buy-limit"
}
}`)
err := h.wsHandleData(pressXToJSON)
require.NoError(t, err)
}

func TestStringToOrderStatus(t *testing.T) {
type TestCases struct {
Case string
Expand Down

0 comments on commit c0c226c

Please sign in to comment.