npm install github:lwhuang/whalefin-api-rest
API wrapper for the whalefin REST API. Please refer to their documentation for all calls explained. Check out example.js
for lib usage.
This is a fork based of library: https://github.com/askmike/ftx-api-rest
See example.js.
const WhalefinRest = require('whalefin-api-rest');
const whalefin = new WhalefinRest({
key: 'your_key',
secret: 'your_secret',
production: false //false for test node, true for production node
});
const asset = await whalefin.request({
method: 'GET',
path: '/api/v2/asset/balance'
});
console.log('asset', asset);
If this library is helping you trade better on whalefin feel free to use my ref link.