Skip to content

kiyonori-matsumoto/bitflyer-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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