https://github.com/rhrn/gekko-exchanges
Gekko Exchanges API (async / callback)
https://github.com/rhrn/gekko-exchanges
api async cryptocurrency-exchanges gekko
Last synced: 6 months ago
JSON representation
Gekko Exchanges API (async / callback)
- Host: GitHub
- URL: https://github.com/rhrn/gekko-exchanges
- Owner: rhrn
- Created: 2018-04-10T11:53:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-12T07:06:17.000Z (over 7 years ago)
- Last Synced: 2025-03-18T18:01:48.893Z (7 months ago)
- Topics: api, async, cryptocurrency-exchanges, gekko
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gekko Exchanges
Based on [gekko](https://github.com/askmike/gekko)
*Use gekko-exchanges at your own risk.*
## Gekko exchanges api (async / callback)
### Install
```
npm install gekko-exchanges
```### Usage [example](demo/example.js)
```
const { Binance, Bitfinex } = require('gekko-exchanges');const binance = new Binance({ key: '', secret: '', currency: 'BTC', asset: 'ETH' });
const bitfinex = new Bitfinex({ key: '', secret: '', currency: 'BTC', asset: 'ETH' });// async example
(async () => {try {
const binanceTrades = await binance.getTradesAsync(null)
console.log('binanceTrades', binanceTrades)
} catch (err) {
console.log('err', err)
}})();
// callback example
bitfinex.getTrades(null, (err, bitfinexTrades) => {
console.log('err', err)
console.log('bitfinexTrades', bitfinexTrades)
})
```### Avalialbe Methods [docs](https://github.com/askmike/gekko/blob/develop/docs/extending/add_an_exchange.md)
```
// Sync
getCapabilities// Async
getTradesAsync
getTickerAsync
getPortfolioAsync
addOrderAsync
getOrderAsync
buyAsync
sellAsync
checkOrderAsync
cancelOrderAsync// Callback
getTrades
getTicker
getPortfolio
addOrder
getOrder
buy
sell
checkOrder
cancelOrder
```### Avalialbe Exchanges
```
Binance
Bitcoincoid
Bitfinex
Bittrex
CEXio
Coinfalcon
Gdax
Gemini
Quadriga
```