Socket
Socket
Sign inDemoInstall

crypto-exchange-manager

Package Overview
Dependencies
8
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

4

package.json
{
"name": "crypto-exchange-manager",
"version": "4.0.0",
"version": "4.0.1",
"description": "Wrapper for cryptocurrencies exchanges apis.",

@@ -8,3 +8,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/azukaar/crypto-manager"
"url": "git+https://github.com/azukaar/crypto-exchange-manager"
},

@@ -11,0 +11,0 @@ "scripts": {

@@ -27,3 +27,3 @@ [![CircleCI](https://circleci.com/gh/azukaar/crypto-exchange-manager.svg?style=svg)](https://circleci.com/gh/azukaar/crypto-exchange-manager)

const cryptoManager = require('crypto-exchange-manager');
const polynex = cryptoManager['polynex'];
const polynex = new cryptoManager['polynex']();

@@ -48,3 +48,3 @@ polynex.getPairs()

const cryptoManager = require('crypto-exchange-manager');
const polynex = cryptoManager['polynex'];
const polynex = new cryptoManager['polynex']();

@@ -73,1 +73,70 @@ polynex.tick('BCN_BTC')

```
**Authenticate user
```
Currently supported :
- bifinex
```
```js
const cryptoManager = require('crypto-exchange-manager');
const bifinex = new cryptoManager['bifinex']({
key: '123',
secret: '123'
});
```
**get wallet
```
Currently supported :
- bifinex
```
```js
const cryptoManager = require('crypto-exchange-manager');
const bifinex = new cryptoManager['bifinex']({
key: '123',
secret: '123'
});
bifinex.getWallet().then(result => {
console.log(result);
})
```
Will return an array of currencies with their value in the wallet.
```
[
{currency: 'ETH', wallet: '1.8'}
]
```
**get wallet
```
Currently supported :
- bifinex
```
```js
const cryptoManager = require('crypto-exchange-manager');
const bifinex = new cryptoManager['bifinex']({
key: '123',
secret: '123'
});
bifinex.getBook('ETH').then(result => {
console.log(result);
})
```
Will return an array of movement in / out of the account of the user for a specific currency.
```
[
{currency: 'ETH', value: '1.8', completed: true, issued: '154787488'}
]
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc