An open API service indexing awesome lists of open source software.

https://github.com/bhusalb/gate.io

Nodejs api wrapper for gate.io
https://github.com/bhusalb/gate.io

bitcoin-api gate-io nodejs

Last synced: 4 months ago
JSON representation

Nodejs api wrapper for gate.io

Awesome Lists containing this project

README

          

# Nodejs wrapper for Gate.io API2

#### Installation
``` npm install gate.io```

#### Basic Usage
```javascript
var GateIo = require('gate.io');
var gateIoClient = new GateIo('', '');

gateIoClient.getBalances(function(res) {
console.log(res);
});

```

#### Available Methods
- getPairs
```function(callback)```
- getMarketinfo
``` function (callback) ```
- getMarketlist
``` function (callback) ```
- getTickers
``` function (callback) ```
- getTicker
``` function (param, callback) ```
- orderBooks
``` function (callback) ```
- orderBook
``` function (param, callback) ```
- tradeHistory
``` function (param, callback) ```
- getBalances
``` function (param, callback) ```
- depositAddress
``` function (currency, callback) ```
- depositsWithdrawals
``` function (start, end, callback) ```
- buy
``` function (currencyPair, rate, amount, callback) ```
- sell
``` function (currencyPair, rate, amount, callback) ```
- cancelOrder
``` function (orderNumber, currencyPair, callback) ```
- cancelAllOrders
``` function (type, currencyPair, callback) ```
- getOrder
``` function (orderNumber, currencyPair, callback) ```
- openOrders
``` function (callback) ```
- myTradeHistory
``` function (currencyPair, orderNumber, callback) ```
- withdraw
``` function (currency, amount, address, callback)```

------------
###### For additional info Check [API DOCS](https://gate.io/api2)