This repo provides an example plugin compatible with bfx-api-node-core
which logs all emitted events to the console.
npm i --save bfx-api-node-plugin-example
const { Manager } = require('bfx-api-node-core')
const ExamplePlugin = require('bfx-api-node-plugin-example')
const m = new Manager({
plugins: [ExamplePlugin()],
// ...
})
m.openWS()
For a full list of supported events, see lib/plugin.js
.
For a brief executable example, see examples/ws2_manager_usage.js
For more information on plugin development, check the node API wiki
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request