For public API, access key and secret is not required
import {Huobi_spot_rest} from 'huobi-node';
const spot = new Huobi_spot_rest();
await a.get('/market/tickers'); // You can replace any valid API path here
For private API, access key and secret is required
import { Huobi_spot_rest } from 'huobi-node';
const a = new Huobi_spot_rest({ auth: { key: 'access_key_here', secret: 'secret_here' } });
await a.get('/v1/account/accounts');
Websocket is currently not supported yet.