From 16dace553632534d3bfd899b304b3d41caac6c1b Mon Sep 17 00:00:00 2001 From: Matias Date: Mon, 1 Apr 2019 10:29:42 +0200 Subject: [PATCH] Renaming to Clone Executor --- .gitignore | 2 ++ Exchange/wrappers/binanceClient.js | 15 +++++---------- Exchange/wrappers/poloniexClient.js | 5 ----- README.md | 2 +- package.json | 2 +- this.config.json | 4 ++-- 6 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index f57a84efa..6f7be3c13 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ bin/* node_modules/* exchange/Auth0.js .env + +\.vscode/ diff --git a/Exchange/wrappers/binanceClient.js b/Exchange/wrappers/binanceClient.js index e9208e283..3b00f3469 100644 --- a/Exchange/wrappers/binanceClient.js +++ b/Exchange/wrappers/binanceClient.js @@ -1,10 +1,5 @@ exports.newAPIClient = function newAPIClient(pKey, pSecret, logger) { - /* - /* ATENTION: This Library is used both a the cloud (AACloud) and also at the AAWeb on the server side without any modifications. - /* There is a second version, stripped of all the inner functionality that runs at AAWeb browser side, which channels the requests to the server side one. - */ - const FULL_LOG = true; const LOG_FILE_CONTENT = true; const MODULE_NAME = "binanceClient"; @@ -100,7 +95,7 @@ }; const fetch = next => API.ticker24hr(market, analizeResponse(next)); - + retry(null, fetch, handle); } @@ -310,7 +305,7 @@ let error; /* This function analizes the different situations we might encounter trying to access Binance and returns appropiate standard errors. */ - + let stringExchangeErr = JSON.stringify(exchangeErr); let stringExchangeResponse = JSON.stringify(exchangeResponse); @@ -347,14 +342,14 @@ error.notFatal = true; } } - + return callBack(error, exchangeResponse); - + } catch (err) { logger.write(MODULE_NAME, "[ERROR] analizeResponse -> err.message = " + err.message); return callBack(global.DEFAULT_FAIL_RESPONSE, exchangeResponse); } } } - + } diff --git a/Exchange/wrappers/poloniexClient.js b/Exchange/wrappers/poloniexClient.js index 368ce01cc..34bc7a00f 100644 --- a/Exchange/wrappers/poloniexClient.js +++ b/Exchange/wrappers/poloniexClient.js @@ -1,10 +1,5 @@ exports.newAPIClient = function newAPIClient(keyVaultAPI, logger) { - /* - /* ATENTION: This Library is used both a the cloud (AACloud) and also at the AAWeb on the server side without any modifications. - /* There is a second version, stripped of all the inner functionality that runs at AAWeb browser side, which channels the requests to the server side one. - */ - const FULL_LOG = true; const LOG_FILE_CONTENT = false; const MODULE_NAME = "poloniexClient"; diff --git a/README.md b/README.md index 26c9cd48e..20138c17f 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ If you are interested in coding your own crypto trading bots and eventually part ## Copyright and License Notice -© Copyright 2018 Advanced Algos. Please see the [AACloud License](/LICENSE) for information on how you can use this software. +© Copyright 2018 Advanced Algos. Please see the [Clone Executor License](/LICENSE) for information on how you can use this software. ## Disclaimer diff --git a/package.json b/package.json index 16b2e2cd9..2495394c9 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "CloneExecutor", + "name": "@superalgos/clone-executor", "version": "1.0.0", "description": "", "main": "Run.js", diff --git a/this.config.json b/this.config.json index 46ab69018..fa18a5c76 100644 --- a/this.config.json +++ b/this.config.json @@ -1,5 +1,5 @@ { - "codeName": "AACloud", + "codeName": "clone-executor", "version": { "major": 1, "minor": 1, @@ -17,4 +17,4 @@ "dataSet": "One-Min", "dataSetVersion": "dataSet.V1" } -} \ No newline at end of file +}