node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »


This is a node.js wrapper for the Coinfloor websocket API.

It implements all the functions of the API. It is a simple wrapper, so everything should work as documented in the Coinfloor documentation, including the scaling factors for prices and quantities.

This package was not written by the Coinfloor exchange, so please do not contact them in relation to support for this package.


npm install coinfloor


var Coinfloor = require('coinfloor');
var coinfloor = new Coinfloor(userID, password, api_key, onConnect);
//the onConnect function is called when successfully authenticated 
function onConnect(){
  coinfloor.watchTicker(63488, 64032, true, function(msg){console.log(msg)});
coinfloor.addEventListener("TickerChanged", function(msg){
  console.log("new ticker:");

For a more detailed example see the example folder.


addEventListener(notice, handler)



estimateBaseMarketOrder(base, counter, quantity, callback)

estimateCounterMarketOrder(base, counter, total, callback)

placeLimitOrder(base, counter, quantity, price, callback)

executeBaseMarketOrder(base, counter, quantity, callback)

executeCounterMarketOrder(base, counter, total, callback)

cancelOrder(id, callback)

getTradeVolume(asset, callback)

watchOrders(base, counter, watch, callback)

watchTicker(base, counter, watch, callback)