Assistant Template
This commit is contained in:
1 parent
d199b3108f
commit
6a3ea13603
5 files changed
+65
-3
No files matched your search
@@ -0,0 +1,48 @@
|
||||
exports.newAssistant = function newAssistant(BOT, DEBUG_MODULE) {
|
||||
|
||||
/*
|
||||
|
||||
This module allows trading bots to execute actions on the exchange, and also on its current recorded state.
|
||||
|
||||
*/
|
||||
|
||||
const MODULE_NAME = "Assistant";
|
||||
|
||||
thisObject = {
|
||||
initialize: initialize
|
||||
};
|
||||
|
||||
let bot = BOT;
|
||||
|
||||
const logger = DEBUG_MODULE.newDebugLog();
|
||||
logger.fileName = MODULE_NAME;
|
||||
|
||||
|
||||
return thisObject;
|
||||
|
||||
function initialize(callBackFunction) {
|
||||
|
||||
try {
|
||||
|
||||
|
||||
|
||||
} catch (err) {
|
||||
|
||||
logger.write("[ERROR] initialize -> err = " + err);
|
||||
callBackFunction("Operation Failed.");
|
||||
}
|
||||
}
|
||||
|
||||
function getCandles(callBack) {
|
||||
|
||||
try {
|
||||
|
||||
|
||||
|
||||
} catch (err) {
|
||||
logger.write("[ERROR] getCandles -> err = " + err);
|
||||
callBack("Operation Failed.");
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
Reference in new issue
Block a user