# cryptsy

> Cryptsy Trading Platform API for Node.js

Latest version **0.1.3** (published 2013-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install cryptsy
pnpm add cryptsy
yarn add cryptsy
bun add cryptsy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2013-12-03 |
| First published | 2013-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Pedro Ladaria |
| Maintainers | petermrg |
| Keywords | Cryptsy, Trading, API, Bitcoin, Litecoin, Namecoin, BTC, LTC, NMC |

## Links

- npm: https://www.npmjs.com/package/cryptsy
- Repository: https://github.com/petermrg/node-cryptsy
- Issues: https://github.com/petermrg/node-cryptsy/issues
- npm.io page: https://npm.io/package/cryptsy

## Dependencies (1)

- [request](https://npm.io/package/request.md) ~2.27.0

## Recent versions

- 0.1.3 (latest) — 2013-12-03
- 0.1.2 — 2013-12-03
- 0.1.1 — 2013-12-03
- 0.1.0 — 2013-12-03

## README

node-cryptsy
============

Node module for Cryptsy trading platform.

Based on [Cryptsy reference implementation](https://www.cryptsy.com/pages/api)

## Install ##

```bash
$ npm install cryptsy
```

## Sample usage ##

### Create a Cryptsy object ###

```javascript
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:

```javascript
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:

```javascript
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](https://www.cryptsy.com/pages/api)

## License ##

MIT

---
_Source: https://npm.io/package/cryptsy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
