# bitfinex

> node.js wrapper for bitfinex cryptocurrency exchange

Latest version **1.0.3** (published 2015-03-15) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-03-15 |
| First published | 2013-12-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 25 |
| Author | Gabriel Ferrin |
| Maintainers | loourr |
| Keywords | bitfinex, litecoin, bitcoin, cryptocurrency, exchange |

## Links

- npm: https://www.npmjs.com/package/bitfinex
- Repository: https://github.com/gferrin/bitfinex
- Issues: https://github.com/gferrin/bitfinex/issues
- npm.io page: https://npm.io/package/bitfinex

## Dependencies (1)

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

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2015-03-15
- 1.0.2 — 2015-03-14
- 1.0.1 — 2015-03-14
- 1.0.0 — 2015-03-14
- 0.4.1 — 2015-03-14
- 0.4.0 — 2015-03-09
- 0.3.8 — 2015-03-04
- 0.3.7 — 2015-03-04
- 0.3.6 — 2015-03-04
- 0.3.5 — 2015-03-03
- 0.3.4 — 2015-03-03
- 0.3.3 — 2015-01-22
- 0.3.2 — 2015-01-22
- 0.3.1 — 2015-01-22
- 0.3.0 — 2015-01-20
- … 16 more at https://npm.io/package/bitfinex/versions

## README

This is a node.js wrapper for the Bitfinex [API](https://bitfinex.com/pages/api).

### Install

`npm install bitfinex`

### Example

```js
var Bitfinex = require('bitfinex');

var bitfinex = new Bitfinex(your_key, your_secret);

bitfinex.new_order("btcusd", 42, 802.7, "all", "buy", "exchange limit", 
	function(err, res, order_id){
		console.log(order_id);
});
```

### Error

If your getting the error `[Error: Nonce is too small.]` then your most likely
running the same process twice using the same API keys.

## Functions

`ticker(symbol, cb)`

`today(symbol, cb)`		

`candles(symbol, cb)`

`lendbook(currency, cb)`	

`orderbook(symbol, options, cb) `

`trades(symbol, cb)`

`lends(currency, cb)`	

`get_symbols(cb)`

`symbols_details(cb)`

##### AUTHENTICATED REQUESTS 

`new_deposit(currency, method, wallet_name, cb)`

`new_order(symbol, amount, price, exchange, side, type, cb)`

`multiple_new_orders(symbol, amount, price, exchange, side, type, cb)`

`cancel_order(order_id, cb)`

`cancel_all_orders(cb)`

`cancel_multiple_orders(order_ids, cb)`

`replace_order(order_id, symbol, amount, price, exchange, side, type, cb)`

`order_status(order_id, cb)`

`active_orders(cb)`

`active_positions(cb)`

`movements(currency, [options,] cb)`

`past_trades(symbol, [options,] cb)`

`new_offer(currency, amount, rate, period, direction, insurance_option, cb)`

`cancel_offer(offer_id, cb)`

`offer_status(order_id, cb)`

`active_offers(cb)`

`active_credits(cb)`

`wallet_balances(cb)`

`taken_swaps(cb)`

`close_swap(cb)`

`account_infos(cb)`

`margin_infos(cb)`

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