diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index 2ba614263..819593f1f 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -15785,8 +15785,7 @@ } ], "initialValues": { - "config": "{ \n\"codeName\": \"DOUBLE_CLICK_ON_THIS_STRING_TO_SELECT_IT_XXX_DELETE_IT_AND_PASTE_YOUR_EXCHANGE_API_PUBLIC_KEY\",\n\"secret\": \"REPLACE_THIS_STRING_WITH_YOUR_API_KEY_SECRET\"\n,\n\"uid\": \"REPLACE_THIS_STRING_WITH_YOUR_UID_IF_NECESSARY\"\n}" - }, +"config": "{ \n\"codeName\": \"DOUBLE_CLICK_ON_THIS_STRING_TO_SELECT_IT_XXX_DELETE_IT_AND_PASTE_YOUR_EXCHANGE_API_PUBLIC_KEY\",\n\"secret\": \"REPLACE_THIS_STRING_WITH_YOUR_API_KEY_SECRET\"\n,\n\"uid\": \"REPLACE_THIS_STRING_WITH_YOUR_UID_IF_NECESSARY\"\n}" }, "addLeftIcons": true, "editors": { "config": true diff --git a/Projects/Superalgos/Schemas/Docs-Topics/tested-exchanges-010-bitstamp-test-status.json b/Projects/Superalgos/Schemas/Docs-Topics/tested-exchanges-010-bitstamp-test-status.json new file mode 100644 index 000000000..b719e831b --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/tested-exchanges-010-bitstamp-test-status.json @@ -0,0 +1,56 @@ +{ + "topic": "Tested Exchanges", + "pageNumber": "10", + "type": "Bitstamp Test Status", + "definition": { + "text": "Bitstamp is fully tested for data mining and trading.", + "updated": 1615141847424 + }, + "paragraphs": [ + { + "style": "Title", + "text": "Properties", + "updated": 1615143100216 + }, + { + "style": "List", + "text": "1-min OHLCVs Capability [*]: Yes." + }, + { + "style": "List", + "text": "Market History: Starting on September 2017.", + "updated": 1615142912901 + }, + { + "style": "List", + "text": "Trading Capability [**]: Yes.", + "updated": 1615143016205 + }, + { + "style": "List", + "text": "Comments: Fully tested. ", + "updated": 1615142951363 + }, + { + "style": "Text", + "text": "[*] The ability to fetch historic data for backtesting purposes has been verified." + }, + { + "style": "Text", + "text": "[**] The ability to run strategies in live-trading mode has been verified." + }, + { + "style": "Title", + "text": "Configuration" + }, + { + "style": "Json", + "text": "{\n \"codeName\": \"binance\",\n \"API\": [\n {\n \"method\": \"fetchTrades\",\n \"fetchType\": \"by Id\",\n \"fetchTradesMethod\": \"publicGetHistoricalTrades\",\n \"firstId\": \"f\"\n }\n ]\n}", + "updated": 1615143066280 + }, + { + "style": "Text", + "text": "" + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js b/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js index 65e427db7..01766b1da 100644 --- a/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js +++ b/Projects/Superalgos/TS/Bot-Modules/Trading-Bot/Low-Frequency-Trading/APIs/ExchangeAPI.js @@ -32,12 +32,14 @@ if (TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent !== undefined) { key = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.codeName secret = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.secret + uid = TS.projects.superalgos.globals.taskConstants.TASK_NODE.keyReference.referenceParent.config.uid } } const exchangeClass = ccxt[exchangeId] const exchangeConstructorParams = { 'apiKey': key, 'secret': secret, + 'uid' : uid, 'timeout': 30000, 'enableRateLimit': true, verbose: false,