Fully debugged

This commit is contained in:
Luis Fernando Molina committed 2018-03-08 20:20:59 +01:00
1 parent b8c69bb74c
commit 3abcb1bc2b
8 files changed
+79 -73

No files matched your search

+6 -6
View File
@@ -10,7 +10,7 @@
const MODULE_NAME = "Exchange API";
thisObject = {
let thisObject = {
initialize: initialize,
getOpenPositions: getOpenPositions,
getExecutedTrades: getExecutedTrades,
@@ -136,7 +136,7 @@
exchangePositions.push(openPosition);
}
callBackFunction(null, exchangePositions);
callBackFunction(global.DEFAULT_OK_RESPONSE, exchangePositions);
}
}
catch (err) {
@@ -229,7 +229,7 @@
trades.push(trade);
}
callBackFunction(null, trades);
callBackFunction(global.DEFAULT_OK_RESPONSE, trades);
}
}
catch (err) {
@@ -316,7 +316,7 @@
*/
callBackFunction(null, exchangeResponse.orderNumber);
callBackFunction(global.DEFAULT_OK_RESPONSE, exchangeResponse.orderNumber);
}
}
catch (err) {
@@ -331,7 +331,7 @@
}
}
function movePosition(pPosition, pNewRate) {
function movePosition(pPosition, pNewRate, callBackFunction) {
try {
@@ -397,7 +397,7 @@
*/
callBackFunction(null, exchangeResponse.orderNumber);
callBackFunction(global.DEFAULT_OK_RESPONSE, exchangeResponse.orderNumber);
}
}
catch (err) {