Nodejs wrapper for the BitFlyer lightning API based on OpenAPI Spec.
npm install node-bitflyer
Please refer to API Reference
const { RestClient, RealtimeClient } = require('node-bitflyer')
const client = new RestClient('api_key', 'api_secret')
client.fetch('GET', '/me/getpermissions').then((res) => { console.log(res)} )
//with query
client.fetch('GET', '/board?product_code=ETH_BTC').then((res) => { console.log(res)} )
//with body
client.fetch('POST', '/me/sendchildorder',
{ "product_code": "BTC_JPY",
"child_order_type": "LIMIT",
"side": "BUY",
"price": 30000,
"size": 0.1,
"minute_to_expire": 10000,
"time_in_force": "GTC"}
).then((res) => { console.log(res)} )
const { RestClient, RealtimeClient } = require('node-bitflyer')
const client = new RestClient('api_key', 'api_secret')
client.getMarkets().then((res) => { console.log(res) })
- getMarkets(/markets)
- getBoard(/board)
- getPermissions(/me/getpermissions)
- getBalance(/me/getbalance)
- sendChildOrder(/me/sendchildorder)
- /me/getcollateral
- /me/getaddress
- /me/getcoinins
- /me/getcoinouts
- /me/getobankaccount
- /me/getdeposits
- /me/withdraw
- /me/getwithdrawls
- /me/cancelchildorder
- /me/sendparentorder
- /me/cancelparentorder
- /me/cancelchildorders
- /me/getchildorders
- /me/getparentorders
- /me/getparentorder
- /me/getexecutions
- /me/getpositions
- /me/getcollateralhistory
- /me/gettradingcommission
Not implemented now and create an issue.
- Fork this repository
- Create your feature branch & commit
- Create a new pull request
MIT