Giter VIP home page Giter VIP logo

shapeshift's Introduction

shapeshift

NPM

Build Status Requirements Status

shapeshift.io api for node.js (unofficial)

What is shapeshift.io?

ShapeShift is an instant exchange for Litecoin, Bitcoin, Peercoin, Dogecoin, Darkcoin, and other cryptocoins. As a new service, it is the fastest way to trade between these digital currencies. An exchange between coins on ShapeShift takes only a few seconds, and no account is needed.

The benefit of this is that you could have a web site where a payout to a content provider is paid out in a different currency than what the consumer paid with. For example, Joe wants to be paid in Bitcoin, while Sally wants to pay in Litecoin.

Install

npm install shapeshift

var shapeshift = require('shapeshift');

shapeshift.getRate(pair)
	.then(function(data){
		//do something w/ data
	});

Usage

Gets the current rate offered by Shapeshift.

var shapeshift = require('shapeshift');
var pair = 'btc_ltc';

shapeshift.getRate(pair)
	.then(function(data){
		var body = data.body;

		//{"pair":"btc_ltc","rate":"93.83852691"}
	};

Gets the current deposit limit set by Shapeshift.

var shapeshift = require('shapeshift');
var pair = 'btc_ltc';

shapeshift.getLimit(pair)
	.then(function(data){
		var body = data.body;

		//{"pair":"btc_ltc","limit":"1.98046131"}
	});

Pairs

btc, ltc, ppc, drk, doge

use an underscore to seperate currencies in a pair (ie: ltc_doge or doge_ltc)

API

http://shapeshift.io/api.html

License MIT

shapeshift's People

Contributors

anthonyettinger avatar chovy avatar

Watchers

 avatar  avatar

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.