diff --git a/example.js b/example.js deleted file mode 100644 index 101422e..0000000 --- a/example.js +++ /dev/null @@ -1,17 +0,0 @@ -const threeCommasAPI = require('3commas-api-node') - -const api = new threeCommasAPI({ - apiKey: '', - apiSecret: '' -}) - -// get last 20 active deals -const showActiveDeals = async () => { - let data = await api.getDeals({ - limit: 20, - scope: 'active', - }) - console.log(data) -} - -showActiveDeals() diff --git a/index.js b/index.js index 0a63460..810fee4 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ 'use strict' -const querystring = require('querystring'); +const querystring = require('querystring') const crypto = require('crypto') const fetch = require('node-fetch') @@ -239,6 +239,10 @@ class threeCommasAPI { return await this.makeRequest('POST', `/public/api/ver1/accounts/${account_id}/remove?`, { account_id }) } + async accountShow (account_id) { + return await this.makeRequest('GET', `/public/api/ver1/accounts/${account_id}?`, { account_id }) + } + } module.exports = threeCommasAPI diff --git a/package.json b/package.json index a91209e..9df49eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "3commas-api-node", - "version": "1.1.1", + "version": "1.1.2", "description": "3commas API NodeJS wrapper", "main": "index.js", "engines": {