import { Bitflyer } from 'bitflyer-promise'
const bitflyer = new Bitflyer();
bitflyer.get_balance()
.then(console.log)
.catch(console.error)
key and secret are specified by following order
- call bitflyer.set_credentials(key, secret);
- set Environment Variable BITFLYER_KEY and BITFLYER_SECRET
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)
Currently not supported.
Please use bitflyer-node
please notify me on https://github.com/kiyonori-matsumoto/bitflyer-promise/issues