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
- Host: GitHub
- URL: https://github.com/nodejh/huobi-sdk
- Owner: nodejh
- Created: 2019-08-31T14:33:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T03:38:19.000Z (almost 4 years ago)
- Last Synced: 2024-03-26T07:45:39.953Z (almost 2 years ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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', {});
```