Socket
Socket
Sign inDemoInstall

cryptsy

Package Overview
Dependencies
23
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cryptsy

Cryptsy Trading Platform API for Node.js


Version published
Maintainers
1
Install size
1.15 MB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 03 Dec 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc