UPDATE to latest version of AACloud

This commit is contained in:
Luis Fernando Molina committed 2018-05-25 10:42:14 +02:00
1 parent acef1ee4a0
commit 2eaee11c7e
4 files changed
+19 -18

No files matched your search

@@ -29,7 +29,7 @@
let charlyStorage = FILE_STORAGE.newFileStorage(bot);
let utilities = UTILITIES.newUtilities(bot);
let utilities = UTILITIES.newCloudUtilities(bot);
let year;
let month;
@@ -51,7 +51,7 @@
console.log(logText);
logger.write(logText);
charlyStorage.initialize();
charlyStorage.initialize(bot.devTeam);
markets = MARKETS_MODULE.newMarkets(bot);
markets.initialize(callBackFunction);
@@ -417,9 +417,9 @@ This process complements the Live Trades process and write historical trades fil
exchangeCallTime = new Date();
let poloniexApiClient = new POLONIEX_CLIENT_MODULE();
let poloniexApiClient = POLONIEX_CLIENT_MODULE.newPoloniexAPIClient(global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Key, global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Secret);
poloniexApiClient.returnPublicTradeHistory(market.assetA, market.assetB, startTime, endTime, onExchangeCallReturned);
poloniexApiClient.API.returnPublicTradeHistory(market.assetA, market.assetB, startTime, endTime, onExchangeCallReturned);
}
catch (err) {
+7 -6
View File
@@ -25,8 +25,9 @@
let charlyStorage = BLOB_STORAGE.newBlobStorage(bot);
let utilities = UTILITIES.newUtilities(bot);
let poloniexApiClient = new POLONIEX_CLIENT_MODULE();
let utilities = UTILITIES.newCloudUtilities(bot);
let poloniexApiClient = POLONIEX_CLIENT_MODULE.newPoloniexAPIClient(global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Key, global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Secret);
let statusReportModule = STATUS_REPORT.newStatusReport(BOT, DEBUG_MODULE, BLOB_STORAGE, UTILITIES);
let year;
@@ -51,7 +52,7 @@
if (FULL_LOG === true) { logger.write("[INFO] initialize -> pYear = " + year); }
if (FULL_LOG === true) { logger.write("[INFO] initialize -> pMonth = " + month); }
charlyStorage.initialize({ bot: "AACharly", devTeam: "AAMasters" }, onCharlyInizialized);
charlyStorage.initialize(bot.devTeam, onCharlyInizialized);
function onCharlyInizialized(err) {
@@ -824,9 +825,9 @@ What is the lastFile pointer?
exchangeCallTime = new Date();
let poloniexApiClient = new POLONIEX_CLIENT_MODULE();
let poloniexApiClient = POLONIEX_CLIENT_MODULE.newPoloniexAPIClient(global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Key, global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Secret);
poloniexApiClient.returnPublicTradeHistory(market.assetA, market.assetB, startTime, endTime, onExchangeCallReturned);
poloniexApiClient.API.returnPublicTradeHistory(market.assetA, market.assetB, startTime, endTime, onExchangeCallReturned);
} catch (err) {
logger.write("[ERROR] start -> getTheTrades -> err = " + err.message);
@@ -848,7 +849,7 @@ What is the lastFile pointer?
logger.write("[INFO] start -> onExchangeCallReturned -> Call time recorded = " + timeDifference + " seconds.");
}
poloniexApiClient.analizeResponse(logger, err, exchangeResponse, callBackFunction, onResponseOk);
poloniexApiClient.API.analizeResponse(logger, err, exchangeResponse, callBackFunction, onResponseOk);
function onResponseOk() {
+5 -5
View File
@@ -25,8 +25,8 @@
let charlyStorage = BLOB_STORAGE.newBlobStorage(bot);
let utilities = UTILITIES.newUtilities(bot);
let poloniexApiClient = new POLONIEX_CLIENT_MODULE();
let utilities = UTILITIES.newCloudUtilities(bot);
let poloniexApiClient = POLONIEX_CLIENT_MODULE.newPoloniexAPIClient(global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Key, global.EXCHANGE_KEYS[global.EXCHANGE_NAME].Secret);
let statusDependencies;
@@ -42,7 +42,7 @@
statusDependencies = pStatusDependencies;
charlyStorage.initialize({ bot: "AACharly", devTeam: "AAMasters" }, onCharlyInizialized);
charlyStorage.initialize(bot.devTeam, onCharlyInizialized);
function onCharlyInizialized(err) {
@@ -192,7 +192,7 @@ Array of records with this information:
exchangeCallTime = new Date();
poloniexApiClient.returnPublicTradeHistory(market.assetA, market.assetB, startTime, endTime, onExchangeCallReturned);
poloniexApiClient.API.returnPublicTradeHistory(market.assetA, market.assetB, startTime, endTime, onExchangeCallReturned);
} catch (err) {
logger.write("[ERROR] start -> getTheTrades -> err = " + err.message);
@@ -213,7 +213,7 @@ Array of records with this information:
logger.write("[INFO] start -> onExchangeCallReturned -> Call time recorded = " + timeDifference + " seconds.");
}
poloniexApiClient.analizeResponse(logger, err, exchangeResponse, callBackFunction, onResponseOk);
poloniexApiClient.API.analizeResponse(logger, err, exchangeResponse, callBackFunction, onResponseOk);
function onResponseOk() {
+3 -3
View File
@@ -18,9 +18,9 @@
<PropertyGroup Condition="'$(Configuration)' == 'Debug'" />
<PropertyGroup Condition="'$(Configuration)' == 'Release'" />
<ItemGroup>
<Compile Include="Poloniex-Historic-Trades\Interval.js" />
<Compile Include="Poloniex-Hole-Fixing\User.bot.js" />
<Compile Include="Poloniex-Live-Trades\User.bot.js" />
<Compile Include="Poloniex-Historic-Trades\User.Bot.js" />
<Compile Include="Poloniex-Hole-Fixing\User.Bot.js" />
<Compile Include="Poloniex-Live-Trades\User.Bot.js" />
<Content Include="this.bot.config.json" />
</ItemGroup>
<ItemGroup>