bitflyer-promise

0.1.3 • Public • Published

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

  1. call bitflyer.set_credentials(key, secret);
  2. 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

Package Sidebar

Install

npm i bitflyer-promise

Weekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • kiyonori