https://github.com/gasolin/node-red-contrib-bitfinex
Bitfinex API wrapper node for node-red
https://github.com/gasolin/node-red-contrib-bitfinex
bitfinex bitfinex-api crypto cryptocurrency exchange node-red node-red-contrib
Last synced: 8 months ago
JSON representation
Bitfinex API wrapper node for node-red
- Host: GitHub
- URL: https://github.com/gasolin/node-red-contrib-bitfinex
- Owner: gasolin
- License: mit
- Created: 2019-01-04T03:10:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:15:32.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T20:57:47.348Z (9 months ago)
- Topics: bitfinex, bitfinex-api, crypto, cryptocurrency, exchange, node-red, node-red-contrib
- Language: JavaScript
- Homepage: https://blog.gasolin.idv.tw/2019/01/07/node-red-contrib-bitfinex/
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Bitfinex Function Node for Node-RED
[](https://www.npmjs.com/package/node-red-contrib-bitfinex)
`node-red-contrib-bitfinex` make Bitfinex API very easy to access, you can visually show exchange data in node-red's dashboard, mashup with other services, or trade from weird objects around your house.
## Install
1. Install Node-RED `npm install -g node-red`
2. Go to Node-RED user directory (default: `~/.node-red`)
3. `npm install node-red-contrib-bitfinex`Or start Node-RED via `node-red`, then go `settings > Palette > Install` tab in node-red and search `bitfinex` to install this module.
## Features
- A Function block where you can write your own code to execute [Bitfinex's nodejs API library](https://github.com/bitfinexcom/bitfinex-api-node)

- A credential configuration block

- Installed Blocks are provide in `bitfinex` category
- Guides and workable rest/websocket examples are provided in help tab
- expose `rest` method in function block to easy access [REST API](https://github.com/bitfinexcom/bitfinex-api-node/tree/master/examples/rest2) calls.
- expose `ws` in function block to easy access [Websocket API](https://github.com/bitfinexcom/bitfinex-api-node/tree/master/examples/ws2) calls

- expose `bfx` method in function block that allows [advanced usage](https://github.com/bitfinexcom/bitfinex-api-node/blob/master/examples/bfx.js).
- `rest`, `ws` returned data are auto transformed to object based on [bfx-api-node-models](https://github.com/bitfinexcom/bfx-api-node-models)
- The functoin block supports multiple outputs (ex: can subscribe multiple tickers and export at the same block)
- You can visualize value and diagram with [Node-RED dashboard](https://flows.nodered.org/node/node-red-dashboard)

## Usage
Refer official Bitfinex document https://docs.bitfinex.com/v2/docs for all APIs.
Bitfinex API credentials can be obtained from [https://www.bitfinex.com/api](https://www.bitfinex.com/api)
## Credit
The block is derived from [node-red's build-in function block](https://github.com/node-red/node-red/blob/master/nodes/core/core/80-function.js). And refer [node-red-contrib-aws-sdk](https://github.com/cuongquay/node-red-contrib-aws-sdk) for the credential block.
The functions are build on top of [Bitfinex's nodejs API library](https://github.com/bitfinexcom/bitfinex-api-node)
## License
MIT License