Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 920 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 920 Bytes

whalefin-api-rest

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

Usage

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);

TODO

Final

If this library is helping you trade better on whalefin feel free to use my ref link.