Exchange and Market as global variables.

This commit is contained in:
Luis Fernando Molina committed 2018-03-08 09:47:29 +01:00
1 parent 91dfa45b61
commit 1d00aaf6d2
6 files changed
+40 -26

No files matched your search

+15 -2
View File
@@ -66,21 +66,34 @@ process.on('exit', function (code) {
logger.write('About to exit with code:' + code);
});
/* Global constants definitions. */
/* Callbacks default responses. */
global.DEFAULT_OK_RESPONSE = {
result: "Ok",
message: "Operation Succeeded"
};
global.global.DEFAULT_FAIL_RESPONSE = {
global.DEFAULT_FAIL_RESPONSE = {
result: "Fail",
message: "Operation Failed"
};
global.global.DEFAULT_RETRY_RESPONSE = {
global.DEFAULT_RETRY_RESPONSE = {
result: "Retry",
message: "Retry Later"
};
/* Current state of the art fixed parameters */
global.MARKET = {
assetA: "USDT",
assetB: "BTC",
};
global.EXCHANGE_NAME = "Poloniex";
const START_ALL_MONTHS = false;