Refactoring Needed
This commit is contained in:
1 parent
cf0fa76cc4
commit
b59ac31c32
10 files changed
+50
-10
No files matched your search
+1
-1
@@ -33,7 +33,7 @@
|
||||
sendMessage: sendMessage
|
||||
};
|
||||
|
||||
let utilities = UTILITIES.newUtilities(bot);
|
||||
let utilities = UTILITIES.newCloudUtilities(bot);
|
||||
|
||||
let exchangePositions = []; // These are the open positions at the exchange at the account the bot is authorized to use.
|
||||
let openPositions = []; // These are the open positions the bot knows it made by itself.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
|
||||
exports.newUtilities = function newUtilities(BOT) {
|
||||
exports.newCloudUtilities = function newCloudUtilities(BOT) {
|
||||
|
||||
const FULL_LOG = true;
|
||||
|
||||
let bot = BOT;
|
||||
const ROOT_DIR = '../';
|
||||
|
||||
const MODULE_NAME = "Utilities";
|
||||
const MODULE_NAME = "CloudUtilities";
|
||||
|
||||
|
||||
const DEBUG_MODULE = require('./DebugLog');
|
||||
+1
-1
@@ -81,7 +81,7 @@
|
||||
|
||||
/* Utilities needed. */
|
||||
|
||||
let utilities = UTILITIES.newUtilities(bot);
|
||||
let utilities = UTILITIES.newCloudUtilities(bot);
|
||||
|
||||
/* Storage account to be used here. */
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
/* Utilities needed. */
|
||||
|
||||
let utilities = UTILITIES.newUtilities(bot);
|
||||
let utilities = UTILITIES.newCloudUtilities(bot);
|
||||
|
||||
/* Storage account to be used here. */
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
/* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */
|
||||
|
||||
const UTILITIES = require(ROOT_DIR + 'Utilities');
|
||||
const UTILITIES = require(ROOT_DIR + 'CloudUtilities');
|
||||
const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage');
|
||||
const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog');
|
||||
const STATUS_REPORT = require(ROOT_DIR + 'StatusReport');
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
/* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */
|
||||
|
||||
const UTILITIES = require(ROOT_DIR + 'Utilities');
|
||||
const UTILITIES = require(ROOT_DIR + 'CloudUtilities');
|
||||
const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage');
|
||||
const FILE_STORAGE = require(ROOT_DIR + 'FileStorage');
|
||||
const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog');
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@
|
||||
<Compile Include="TradingBotProcessMainLoop.js">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Utilities.js" />
|
||||
<Compile Include="CloudUtilities.js" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include=".gitignore" />
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
|
||||
/* Utilities needed. */
|
||||
|
||||
let utilities = UTILITIES.newUtilities(bot);
|
||||
let utilities = UTILITIES.newCloudUtilities(bot);
|
||||
|
||||
/* Storage account to be used here. */
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
/* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */
|
||||
|
||||
const UTILITIES = require(ROOT_DIR + 'Utilities');
|
||||
const UTILITIES = require(ROOT_DIR + 'CloudUtilities');
|
||||
const BLOB_STORAGE = require(ROOT_DIR + 'BlobStorage');
|
||||
const DEBUG_MODULE = require(ROOT_DIR + 'DebugLog');
|
||||
const POLONIEX_CLIENT_MODULE = require(ROOT_DIR + 'PoloniexAPIClient');
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"webModules": [
|
||||
{
|
||||
"name": "Assistant"
|
||||
},
|
||||
{
|
||||
"name": "BlobStorage"
|
||||
},
|
||||
{
|
||||
"name": "Context"
|
||||
},
|
||||
{
|
||||
"name": "DataDependencies"
|
||||
},
|
||||
{
|
||||
"name": "ExchangeAPI"
|
||||
},
|
||||
{
|
||||
"name": "PoloniexAPIClient"
|
||||
},
|
||||
{
|
||||
"name": "StatusDependencies"
|
||||
},
|
||||
{
|
||||
"name": "StatusReport"
|
||||
},
|
||||
{
|
||||
"name": "CloudUtilities"
|
||||
},
|
||||
{
|
||||
"name": "ExtractionBotProcessMainLoop"
|
||||
},
|
||||
{
|
||||
"name": "IndicatorBotProcessMainLoop"
|
||||
},
|
||||
{
|
||||
"name": "TradingBotProcessMainLoop"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user