36b8e4b6a8
* Extended publishing of libraries to npm * Update source links * Add some tests before publishing NPM library * Fix Shapeshift tests
922 B
922 B
@parity/ShapeShift
A thin ES6 promise wrapper around the shapeshift.io APIs as documented at https://shapeshift.io/api
https://github.com/ethcore/parity/tree/master/js/src/3rdparty/shapeshift
usage
installation -
npm install --save @parity/ShapeShift
Usage -
const APIKEY = 'private affiliate key or undefined';
const shapeshift = require('@parity/ShapeShift')(APIKEY);
// api calls goes here
api
queries -
getCoins()
https://shapeshift.io/api#api-104getMarketInfo(pair)
https://shapeshift.io/api#api-103getStatus(depositAddress)
https://shapeshift.io/api#api-5
transactions -
shift(toAddress, returnAddress, pair)
https://shapeshift.io/api#api-7