1.0.4 • Published 5 years ago

acx-io v1.0.4

Weekly downloads
6
License
WTFPL
Repository
github
Last release
5 years ago

Build Status Coverage Status Dependencies

ACX Wrapper

Typescript / Node wrapper for the Data and Trading APIs offered by ACX

Setup

Install the dependancies with npm / yarn.

npm install acx-io --save

API Key

In order to utilise the private() method you'll need to generate an API Key.

Usage

The API wrapper exposes a Public and a Private method, which contain each of the endpoint functions.

Exposed Functions

Example

Examples for usage of each function can be found within the examples folder.

They can be run by the command line with ts-node.

npm install ts-node -g
ts-node examples/public/orderbook
import { acx } from 'acx-io';

const acx = new acx('accessKey', 'secret');

// Access Public Timestamp
acx.public().timestamp()
  .then(resp => {
    console.log(resp);
  });