[go: up one dir, main page]

This package has been deprecated

Author message:

Huobi Australia has closed down, package no longer in use

huobi-australia
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Build Status Coverage Status Dependencies

Huobi Australia Wrapper

Typescript / Node wrapper for the Market, Public, Account and Trade APIs offered by Huobi Australia

Setup

Install the dependancies with npm / yarn.

npm install huobi-australia --save

API Key

In order to utilise Account and Trade features you'll need to generate an API Key with Huobi.

Usage

The API wrapper exposes several classes, Public, Market, Trade and Account. Each class has methods for each API Endpoint as specified in the Huobi API Documentation.

Exposed Functions

Example

Examples for usage of each function can be found within the examples folder and in the Wiki

import { Huobi } from 'huobi-australia';

// Authenticated Requests
const h = new Huobi('MyAccessTokenId', 'MyPrivateKey');

h.account().accounts()
  .then(resp => {
    console.log(resp);
  });

// Unauthenticated Requests
const unauthH = new Huobi();

unauthH.market().trade('btcaud')
  .then(resp => {
    console.log(resp);
  });

Dependencies (3)

Dev Dependencies (12)

Package Sidebar

Install

npm i huobi-australia

Weekly Downloads

2

Version

1.0.5

License

WTFPL

Unpacked Size

773 kB

Total Files

104

Last publish

Collaborators

  • sketchthat