The official Orionx SDK for JavaScript
Usage
First you need to install it via npm.
npm install orionx-sdk --save
Then you will need to get your credentials, follow this tutorial
After that we are ready to go
Code example
import Orionx from 'orionx-sdk'
Orionx.setCredentials({
apiKey: '<apiKey>',
secretKey: '<secretKey>',
apiUri: 'https://api2.orionx.com/graphql',
})
Orionx.market({code: 'LTCBTC'})
.then(function (market) {
console.log(market)
})
.catch(function (err) {
console.log(err)
})
Documentation & Examples
All documentation is over here