Fully debugged
This commit is contained in:
1 parent
b8c69bb74c
commit
3abcb1bc2b
8 files changed
+79
-73
No files matched your search
+6
-6
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user