0.0.2 • Published 2 years ago

luno-node-api v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Luno Node API library

NPM Downloads

Generated using @openapitools/openapi-generator-cli and schema file luno-schema

Install

From NPM https://www.npmjs.com/package/luno-node-api

npm install luno-node-api

For Node < 18.0 needs to provide fetch API as part of configuration

Example

import { MarketApi } from 'luno-node-api';

const marketApi = new MarketApi();
const results = await marketApi.getOrderBookFull({ pair: 'XBTUSDC' });

See full example

Run example

git clone https://github.com/krystiangw/luno-node-api.git
cd luno-node-api
npm install

## provide .env file
touch .env
echo "LUNO_PUBLIC="YOUR_PUBLIC_LUNO_KEY"" > .env
echo "LUNO_SECRET="YOUR_SECRET_LUNO_KEY"" > .env

npm run example
0.0.2

2 years ago

0.0.1

2 years ago