cry

cryptsy

Node module for Cryptsy trading platform

Showing:

Popularity

Downloads/wk

1

GitHub Stars

12

Maintenance

Last Commit

5yrs ago

Contributors

5

Package

Dependencies

1

Size (min+gzip)

36.3KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-cryptsy

Node module for Cryptsy trading platform.

Based on Cryptsy reference implementation

Install

$ npm install cryptsy

Sample usage

Create a Cryptsy object

var Cryptsy = require('cryptsy');

var cryptsy = new Cryptsy('YOUR-KEY', 'YOUR-SECRET');

Public Methods

Public methods do not require the use of an api key

  • marketdata
  • marketdatav2
  • singlemarketdata
  • orderdata
  • singleorderdata

Examples:

cryptsy.api('marketdata', null, function (err, data) {
    if (err) {
        throw err;
    } else {
        // do something with data
    }
});

cryptsy.api('singlemarketdata', { marketid: 26 }, function (err, data) {
    // ...
});

Authenticated Methods

Authenticated methods require the use of an api key

  • getinfo
  • getmarkets
  • mytransactions
  • markettrades
  • marketorders
  • mytrades'
  • allmytrades
  • myorders
  • depth
  • allmyorders
  • createorder
  • cancelorder'
  • cancelmarketorders
  • cancelallorders
  • calculatefees
  • generatenewaddress

Examples:

cryptsy.api('getinfo', null, function (err, data) {
    if (err) {
        throw err;
    } else {
        // do something with data
    }
});

cryptsy.api('getmarkets', null, function (err, data) {
    // ...
});

cryptsy.api('markettrades', { marketid: 26 }, function (err, data) {
    // ...
});

cryptsy.api('createorder', { marketid: 26, ordertype: 'Sell', quantity: 1000, price: 1000 }, function (err, data) {
    // ...
});

cryptsy.api('cancelorder', { orderid: 123456 }, function (err, data) {
    // ...
});

cryptsy.api('calculatefees', { ordertype: 'Buy', quantity: 1000, price: '0.005' }, function (err, data) {
    // ...
});

API Documentation

Cryptsy trading API

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial