GithubHelp home page GithubHelp logo

bitflyer-node's Introduction

bitflyer-node

wrapper of bitFlyer APIs

Caution:

this is not implemented trade api yet

Dependencies

How to use

at first

$ npm install bitflyer-node

example

var bitflyer = require('bitflyer-node');

// REST API
// if you don't give api key and secret, then you can use only public api
var rest = new bitflyer.REST('YOUR_API_KEY', 'YOUR_API_SECRET');
rest.getBalance(function(err, data) {
	if(err) return console.error(err);
	console.log(data);
});

// Streaming API
var streaming = new bitflyer.Streaming();
streaming.subscribeTicker(function(err, data) {
	if(err) return console.error(err);
	console.log(data);
});

APIs

REST (Public)

getHealth(callback)

  • callback is function as function(err, data).

getChatLog(callback [, from_date])

  • callback is function as function(err, data).

  • optional: from_date is number. default is 5.

getBoard(callback [, paging])

getTicker(callback [, paging])

getExecutions(callback [, paging])

getBoardFx(callback [, paging])

getTickerFx(callback [, paging])

getExecutionsFx(callback [, paging])

  • callback is function as function(err, data).
  • optional: paging is object as:
{
	count: number,
	before: id,
	after: id
}

REST (Private)

getPermissions(callback)

getBalance(callback)

getCollateral(callback)

getAddresses(callback)

  • callback is function as function(err, data).

getCoinIns(callback [, paging])

getCoinOuts(callback [, paging])

getDeposits(callback [, paging])

getWithDrawals(callback [, paging])

  • callback is function as function(err, data).
  • optional: paging is object as:
{
	count: number,
	before: id,
	after: id
}

getChildOrders

getParentOrders

getParentOrder

getExecutions

getPositions

  • not implemented now

sendChildOrder

cancelChildOrder

sendParentOrder

cancelParentOrder

cancelAllChildOrders

  • not implemented now

Streaming

subscribeBoardSnapshot(callback)

subscribeBoard(callback)

subscribeTicker(callback)

subscribeExecutions(callback)

subscribeBoardSnapshotFx(callback)

subscribeBoardFx(callback)

subscribeTickerFx(callback)

subscribeExecutionsFx(callback)

  • callback is function as function(err, data).

Update history

2016/03/15 ver 0.0.3 release

  • oops again

2016/03/15 ver 0.0.2 release

  • oops

2016/03/15 ver 0.0.1 release

  • initial

License

MIT License.

Author

At the last

Please create a new issue if there is a problem. And please throw a pull request if you have a cool idea!!

if you love this

17AbtW73aydfYH3epP8T3UDmmDCcXSGcaf

bitflyer-node's People

Contributors

2bbb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

niusmake longbill

bitflyer-node's Issues

Works for USD but not for JPY

I'm trying to set up the real-time and it works for BTC_USD but not for BTC_JPY (I receive zero notifications). Do you have an idea why it could be the case? May be BTC_JPY is limited only to Japanese IP addresses?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.