UNPKG

1.13 kBMarkdownView Raw
1This is a node.js wrapper for gemini cryptocurrency exchange, a fork of a fork :-) . Viewable here https://github.com/KevTheRev13/gemini-exchange-coffee-api
2
3### Install
4
5`npm install gemini-exchange-coffee-api`
6
7### Example
8
9```js
10var Gemini = require('gemini');
11
12var gemini = new Gemini(your_key, your_secret);
13
14gemini.new_order("btcusd", 42, 802.7, "all", "buy", "limit",
15 function(err, res, order_id){
16 console.log(order_id);
17});
18```
19
20### Error
21
22If your getting the error `[Error: Nonce is too small.]` then your most likely
23running the same process twice using the same API keys.
24
25## Functions
26
27`orderbook(symbol, options, cb) `
28
29`trades(symbol, cb)`
30
31`get_symbols(cb)`
32
33##### AUTHENTICATED REQUESTS
34
35`new_deposit(currency, method, wallet_name, cb)`
36
37`new_order(symbol, amount, price, exchange, side, type, cb)`
38
39`cancel_order(order_id, cb)`
40
41`cancel_all_orders(cb)`
42
43`replace_order(order_id, symbol, amount, price, exchange, side, type, cb)`
44
45`order_status(order_id, cb)`
46
47`active_orders(cb)`
48
49`past_trades(symbol, [options,] cb)`
50
51`wallet_balances(cb)`
52
53
54
55
56