Understand the Client Hierarchy and Data Categories
masterThe SDK uses specialized client classes to isolate different types of data and privacy levels. This design matches the Huobi API categories, making it easier to find relevant methods.
| Data Category | Client | Privacy | API Protocol |
|---|---|---|---|
| Generic | GenericClient | Public | Rest |
| Market | MarketClient | Public | Rest, WebSocket |
| Account | AccountClient | Private | Rest, WebSocket v2 |
| Wallet | WalletClient | Private | Rest |
| Trade | TradeClient | Private | Rest, WebSocket v2 |
| Margin | MarginClient | Private | Rest |
| Sub User | SubuserClient | Private | Rest |
| Algo | AlgoClient | Private | Rest |
| ETF | ETFClient | Private | Rest |