An open API service indexing awesome lists of open source software.

https://github.com/nodejh/huobi-sdk

SDK of huobi
https://github.com/nodejh/huobi-sdk

Last synced: 11 months ago
JSON representation

SDK of huobi

Awesome Lists containing this project

README

          

# Huobi SDK

https://huobiapi.github.io/docs/spot/v1/cn/#urls

## Usage

```sh
$ npm i hb-sdk --save
```

```js
const Hb = require('hb-sdk');
const hb = new Hb({
accessKey: '',
secretKey: '',
url: 'api.huobi.pro',
});

const symbols = await hb.getCommonSymbols();
const account = await hb.getAccountAccounts();

// invoke
const order = await hb.invoke('GET', '/v1/order/orders/123', {});
```