Huobi: Add subscription configuration (#1604)

* Huobi: Update test config format

* Huobi: Add subscription configuration

* Huobi: Add subscription documentation

* Huobi: Clarify OB sub Levels usage

* Huobi: Enable websocket for tests

* Subscriptions: Rename ErrPrivateChannelName

Rename ErrPrivateChannelName to ErrUseConstChannelName
This commit is contained in:
Gareth Kirwan
2024-11-11 04:19:25 +01:00
committed by GitHub
parent d4c4bf1bcd
commit a2a7fed273
9 changed files with 209 additions and 98 deletions

View File

@@ -32,6 +32,7 @@ const (
MyTradesChannel = "myTrades"
MyOrdersChannel = "myOrders"
MyWalletChannel = "myWallet"
MyAccountChannel = "myAccount"
)
// Public errors
@@ -42,7 +43,7 @@ var (
ErrInStateAlready = errors.New("subscription already in state")
ErrInvalidState = errors.New("invalid subscription state")
ErrDuplicate = errors.New("duplicate subscription")
ErrPrivateChannelName = errors.New("must use standard channel name constants")
ErrUseConstChannelName = errors.New("must use standard channel name constants")
)
// State tracks the status of a subscription channel