bitflyer-promise
v0.1.3
Published
Bitflyer API helper with Promise
Downloads
19
Readme
bitflyer node
How to
import { Bitflyer } from 'bitflyer-promise'
const bitflyer = new Bitflyer();
bitflyer.get_balance()
.then(console.log)
.catch(console.error)
Set credential
key and secret are specified by following order
- call bitflyer.set_credentials(key, secret);
- set Environment Variable BITFLYER_KEY and BITFLYER_SECRET
With options
import { Bitflyer } from 'bitflyer-promise'
const bitflyer = new Bitflyer();
bitflyer.send_child_order({
product_code: 'BTC_JPY',
child_order_type: 'LIMIT',
side: 'BUY',
price: 100000,
size: 0.001,
minute_to_expire: 30,
})
.then(console.log)
.catch(console.error)
Using streaming API
Currently not supported.
Please use bitflyer-node
Any issues?
please notify me on https://github.com/kiyonori-matsumoto/bitflyer-promise/issues