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

@@ -92,12 +92,24 @@ if err != nil {
}
```
### How to do Websocket public/private calls
### Subscriptions
```go
// Exchanges will be abstracted out in further updates and examples will be
// supplied then
All subscriptions are for spot only.
Default Public Subscriptions:
- Ticker
- Candles ( Interval: 1min )
- Orderbook ( Level: 0 - No aggregation )
- Configure Level: 1-5 for depth aggregation, for example:
```json
{"enabled": true, "channel": "orderbook", "asset": "spot", "levels": 1}
```
- Trades
Default Authenticated Subscriptions:
- Account Trades
- Account Orders
- Account Updates
### Please click GoDocs chevron above to view current GoDoc information for this package
{{template "contributions"}}