kanga-exchange-node-api
v0.0.6
Published
Kanga Exchange Node API library
Downloads
26
Maintainers
Readme
Kanga Exchange Node API library
Generated using @openapitools/openapi-generator-cli and schema file kanga-api-schema
Install
From NPM https://www.npmjs.com/package/kanga-exchange-node-api
npm install kanga-exchange-node-api
For Node < 18.0 needs to provide fetch API as part of configuration
Example
import { PublicApi } from 'kanga-exchange-node-api';
const publicApi = new PublicApi();
const results = await publicApi.apiV2MarketOrderbookRawGet({
market: 'KNG-oPLN'
});
See full example
Run example
git clone https://github.com/krystiangw/kanga-exchange-node-api.git
cd kanga-exchange-node-api
npm install
## provide .env file
touch .env
echo "KANGA_PUBLIC="YOUR_PUBLIC_KANGA_KEY"" > .env
echo "KANGA_SECRET="YOUR_SECRET_KANGA_KEY"" > .env
npm run example