Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdd/cex-as-promised
CEX.io on a promise
https://github.com/sdd/cex-as-promised
Last synced: 15 days ago
JSON representation
CEX.io on a promise
- Host: GitHub
- URL: https://github.com/sdd/cex-as-promised
- Owner: sdd
- License: mit
- Created: 2017-06-21T06:50:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:11:58.000Z (about 1 year ago)
- Last Synced: 2024-04-14T23:10:30.475Z (9 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# cex-as-promised
async / promise-based CEX.io API client
[![Build Status](https://travis-ci.org/sdd/cex-as-promised.svg?branch=master)](https://travis-ci.org/sdd/cex-as-promised)
Can be configured by environment vars as well as object passed to constructor
```javascript
const CEXIO = require('cex-as-promised');
const cexio = new CEXIO({
clientId: 'cex client',
key: 'Ive got the key',
secret: 'Ive got the secret',
ccy1: 'BTC',
ccy2: 'EUR'
});
```
Or pass any combination of the fields above and the following env vars:```
CEXIO_CLIENT_ID
CEXIO_KEY
CEXIO_SECRET
CEXIO_CCY_1
CEXIO_CCY_2```