Merge branch 'Superalgos:develop' into develop

This commit is contained in:
Smidy committed 2021-05-09 15:16:37 +12:00
commit 4ab3295917
16 files changed
+244 -33

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

+1 -1
View File
@@ -127,7 +127,7 @@ try {
console.log('Http Interface .............................................. Listening at port ' + global.env.HTTP_INTERFACE_PORT)
console.log('')
console.log("You are running Superalgos Beta 9")
console.log("You are running Superalgos Beta 10")
console.log('')
console.log("What's new? The following was implemented here:")
console.log('')
+1 -1
View File
@@ -681,7 +681,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
const octokit = new Octokit({
auth: token,
userAgent: 'Superalgos Beta 9'
userAgent: 'Superalgos Beta 10'
})
const repo = 'Superalgos'
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="-703 270 512 512" style="enable-background:new -703 270 512 512;" xml:space="preserve">
<style type="text/css">
.st0{display:none;}
.st1{clip-path:url(#SVGID_2_);}
.st2{fill:#FFCC00;}
.st3{fill:#FF0000;}
</style>
<polygon class="st0" points="-145.3,-34 -404,-34 -404,478 108,478 108,314.1 -145.3,314.1 "/>
<rect x="-145.3" y="-34" class="st0" width="253.3" height="348.1"/>
<g class="st0">
<text transform="matrix(1 0 0 1 -367.5776 96.9512)" style="display:inline;fill:#CDD4D5; font-family:'Saira-Black'; font-size:64.1866px;">E = mc</text>
<text transform="matrix(1 0 0 1 -174.8926 75.5773)" style="display:inline;fill:#CDD4D5; font-family:'Saira-Black'; font-size:37.4208px;">2</text>
</g>
<g>
<defs>
<circle id="SVGID_1_" cx="-447" cy="526" r="256"/>
</defs>
<clipPath id="SVGID_2_">
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
</clipPath>
<g id="XMLID_2175_" class="st1">
<rect id="XMLID_2178_" x="-873.7" y="611.3" class="st2" width="853.3" height="170.7"/>
<rect id="XMLID_2177_" x="-873.7" y="440.7" class="st3" width="853.3" height="170.7"/>
<rect id="XMLID_2176_" x="-873.7" y="270" width="853.3" height="170.7"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

@@ -0,0 +1 @@
{"type":"Data Mine","name":"Delta","config":"{\n \"codeName\": \"Delta\"\n}","project":"Superalgos","sensorBots":[],"indicatorBots":[{"type":"Indicator Bot","name":"Relative Strenght Index - Wilder Method (RSI-W)","config":"{\n \"codeName\": \"RSI-W\"\n}","project":"Superalgos","processes":[{"type":"Process Definition","name":"Multi-Period-Market","config":"{\n \"codeName\": \"Multi-Period-Market\",\n \"description\": \"Calculates Wilder RSI.\",\n \"deadWaitTime\": 0,\n \"normalWaitTime\": 0,\n \"retryWaitTime\": 10000,\n \"sleepWaitTime\": 3600000,\n \"comaWaitTime\": 86400000,\n \"framework\": {\n \"name\": \"Multi-Period-Market\"\n }\n}","project":"Superalgos","processOutput":{"type":"Process Output","name":"New Process Output","project":"Superalgos","outputDatasets":[{"type":"Output Dataset","name":"Multi-Period-Market RSI-W14","project":"Superalgos","id":"75881553-ec60-4954-9404-052ba11904f4","savedPayload":{"position":{"x":19646.18251638588,"y":17789.2053813897},"targetPosition":{"x":19675.299658959913,"y":17897.87203684722},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":3,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Dataset Definition","name":"Multi-Period-Market","id":"a94722c3-a453-4f46-931f-aeb244e7cb66"}}}],"outputDatasetFolders":[],"id":"ffb59a7e-565a-4588-bd44-999a7cb66122","savedPayload":{"position":{"x":19675.299658959913,"y":17897.87203684722},"targetPosition":{"x":19704.416801533946,"y":18006.53869230474},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":1,"arrangementStyle":0},"uiObject":{"isRunning":false}}},"processDependencies":{"type":"Process Dependencies","name":"New Process Dependencies","project":"Superalgos","statusDependencies":[{"type":"Status Dependency","name":"Candles Volumes Multi-Period-Market","config":"{\n \"mainUtility\": \"Market Ending Point\"\n}","project":"Superalgos","id":"b0af9801-ba4e-4bfd-a605-98d9ac121b5f","savedPayload":{"position":{"x":19650.151086682014,"y":17594.3496655382},"targetPosition":{"x":19762.651086682014,"y":17789.2053813897},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Status Report","name":"New Status Report","id":"a0a61ba9-91cb-4ec7-92fe-134ff079de2d"}}},{"type":"Status Dependency","name":"Relative Strenght Index - Wilder Method (RSI-W) Multi-Period-Market","config":"{\n \"mainUtility\": \"Self Reference\"\n}","project":"Superalgos","id":"02d64b4a-7c3c-4c89-918d-b3697b5955b2","savedPayload":{"position":{"x":19820.88537183008,"y":17571.87207047466},"targetPosition":{"x":19762.651086682014,"y":17789.2053813897},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Status Report","name":"New Status Report","id":"2b961dac-9f41-4eed-a495-4e55f26714c3"}}}],"dataDependencies":[{"type":"Data Dependency","name":"Candles Multi-Period-Market","project":"Superalgos","id":"25315413-2e01-4a7d-83bc-1257d43f8fe6","savedPayload":{"position":{"x":19957.506802533513,"y":17676.7053813897},"targetPosition":{"x":19762.651086682014,"y":17789.2053813897},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Dataset Definition","name":"Multi-Period-Market","id":"2b03494a-67d6-47f1-89b6-53fc4c9116a8"}}}],"dataMineDataDependencies":[],"id":"b14516a1-e5cc-48f8-ab0f-0e46faf6c41c","savedPayload":{"position":{"x":19762.651086682014,"y":17789.2053813897},"targetPosition":{"x":19704.416801533946,"y":18006.53869230474},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{"isRunning":false}}},"statusReport":{"type":"Status Report","name":"New Status Report","project":"Superalgos","id":"2b961dac-9f41-4eed-a495-4e55f26714c3","savedPayload":{"position":{"x":19863.51582730092,"y":17847.439666537768},"targetPosition":{"x":19704.416801533946,"y":18006.53869230474},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{}}},"executionStartedEvent":{"type":"Execution Started Event","name":"Candles Volumes Multi-Period-Market","project":"Superalgos","id":"c1598823-e0b3-4036-8ad6-669ae0e3f638","savedPayload":{"position":{"x":19921.750112448986,"y":17948.304407156673},"targetPosition":{"x":19704.416801533946,"y":18006.53869230474},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Execution Finished Event","name":"New Execution Finished Event","id"Line truncated
@@ -1 +1 @@
{"type":"Data Mine","name":"PLUVTECH-DM","config":"{\n \"codeName\": \"PLUVTECH-DM\"\n}","project":"Superalgos","sensorBots":[],"apiDataFetcherBots":[],"indicatorBots":[{"type":"Indicator Bot","name":"Fisher Transform","config":"{\n \"codeName\": \"Fisher\"\n}","project":"Superalgos","processes":[{"type":"Process Definition","name":"Multi-Period-Market","config":"{\n \"codeName\": \"Multi-Period-Market\",\n \"description\": \"Produces Fisher Transform\",\n \"deadWaitTime\": 0,\n \"normalWaitTime\": 0,\n \"retryWaitTime\": 10000,\n \"sleepWaitTime\": 3600000,\n \"comaWaitTime\": 86400000,\n \"framework\": {\n \"name\": \"Multi-Period-Market\"\n }\n}","project":"Superalgos","processOutput":{"type":"Process Output","name":"New Process Output","project":"Superalgos","outputDatasets":[{"type":"Output Dataset","name":"Multi-Period-Market FisherTransform","project":"Superalgos","id":"417d48b6-505e-44da-819c-9bae7ef27be1","savedPayload":{"position":{"x":21544.760606413663,"y":17851.908855440484},"targetPosition":{"x":21570.642510923917,"y":17948.50143806939},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Dataset Definition","name":"Multi-Period-Market","id":"9323c88c-d610-4539-b736-cbb8653cef13"}}}],"outputDatasetFolders":[],"id":"8e54b923-f47a-44c4-9463-0ad427cad349","savedPayload":{"position":{"x":21570.642510923917,"y":17948.50143806939},"targetPosition":{"x":21609.465367689296,"y":18093.39031201275},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{"isRunning":false}}},"processDependencies":{"type":"Process Dependencies","name":"New Process Dependencies","project":"Superalgos","statusDependencies":[{"type":"Status Dependency","name":"Fisher Transform Multi-Period-Market","config":"{\n \"mainUtility\": \"Self Reference\"\n}","project":"Superalgos","id":"6a19b7ec-c85e-4acd-aa3d-476d56899896","savedPayload":{"position":{"x":21612.111081220053,"y":17673.708753558363},"targetPosition":{"x":21687.111081220053,"y":17803.61256412603},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Status Report","name":"New Status Report","id":"6d52d241-dc08-45b6-af54-d4a3d3884211"}}},{"type":"Status Dependency","name":"Candles Volumes Multi-Period-Market","config":"{\n \"mainUtility\": \"Market Ending Point\"\n}","project":"Superalgos","id":"2f8cefb9-94ad-4126-b666-cfb9744a90c6","savedPayload":{"position":{"x":21725.933937985432,"y":17658.72369018267},"targetPosition":{"x":21687.111081220053,"y":17803.61256412603},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Status Report","name":"New Status Report","id":"a0a61ba9-91cb-4ec7-92fe-134ff079de2d"}}}],"dataDependencies":[{"type":"Data Dependency","name":"Candles Multi-Period-Market","project":"Superalgos","id":"e246ec47-4cad-43e5-a2ec-4a9a12f41ea2","savedPayload":{"position":{"x":21817.01489178772,"y":17728.61256412603},"targetPosition":{"x":21687.111081220053,"y":17803.61256412603},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Dataset Definition","name":"Multi-Period-Market","id":"2b03494a-67d6-47f1-89b6-53fc4c9116a8"}}}],"dataMineDataDependencies":[],"id":"6827047a-9e5f-463f-bceb-e832686975a9","savedPayload":{"position":{"x":21687.111081220053,"y":17803.61256412603},"targetPosition":{"x":21609.465367689296,"y":18093.39031201275},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},"statusReport":{"type":"Status Report","name":"New Status Report","project":"Superalgos","id":"6d52d241-dc08-45b6-af54-d4a3d3884211","savedPayload":{"position":{"x":21715.531384867278,"y":17987.32429483477},"targetPosition":{"x":21609.465367689296,"y":18093.39031201275},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{}}},"executionStartedEvent":{"type":"Execution Started Event","name":"Candles Volumes Multi-Period-Market","project":"Superalgos","id":"bfafbb28-81d6-42c9-bc1e-9711318c8192","savedPayload":{"position":{"x":21899.243115576017,"y":18015.744598481993},"targetPosition":{"x":21609.465367689296,"y":18093.39031201275},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Execution Finished Event","name":"New Execution Finished Event","id":"18Line truncated
{"type":"Data Mine","name":"PLUVTECH-DM","config":"{\n \"codeName\": \"PLUVTECH-DM\"\n}","project":"Superalgos","sensorBots":[],"apiDataFetcherBots":[],"indicatorBots":[{"type":"Indicator Bot","name":"Fisher Transform","config":"{\n \"codeName\": \"Fisher\"\n}","project":"Superalgos","processes":[{"type":"Process Definition","name":"Multi-Period-Market","config":"{\n \"codeName\": \"Multi-Period-Market\",\n \"description\": \"Produces Fisher Transform\",\n \"deadWaitTime\": 0,\n \"normalWaitTime\": 0,\n \"retryWaitTime\": 10000,\n \"sleepWaitTime\": 3600000,\n \"comaWaitTime\": 86400000,\n \"framework\": {\n \"name\": \"Multi-Period-Market\"\n }\n}","project":"Superalgos","processOutput":{"type":"Process Output","name":"New Process Output","project":"Superalgos","outputDatasets":[{"type":"Output Dataset","name":"Multi-Period-Market FisherTransform","project":"Superalgos","id":"417d48b6-505e-44da-819c-9bae7ef27be1","savedPayload":{"position":{"x":21673.17727308033,"y":18128.238464379032},"targetPosition":{"x":21699.059177590585,"y":18224.831047007938},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":1,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Dataset Definition","name":"Multi-Period-Market","id":"9323c88c-d610-4539-b736-cbb8653cef13"}}}],"outputDatasetFolders":[],"id":"8e54b923-f47a-44c4-9463-0ad427cad349","savedPayload":{"position":{"x":21699.059177590585,"y":18224.831047007938},"targetPosition":{"x":21737.882034355964,"y":18369.7199209513},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{"isRunning":false}}},"processDependencies":{"type":"Process Dependencies","name":"New Process Dependencies","project":"Superalgos","statusDependencies":[{"type":"Status Dependency","name":"Fisher Transform Multi-Period-Market","config":"{\n \"mainUtility\": \"Self Reference\"\n}","project":"Superalgos","id":"6a19b7ec-c85e-4acd-aa3d-476d56899896","savedPayload":{"position":{"x":21740.52774788672,"y":17950.03836249691},"targetPosition":{"x":21815.52774788672,"y":18079.942173064577},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Status Report","name":"New Status Report","id":"6d52d241-dc08-45b6-af54-d4a3d3884211"}}},{"type":"Status Dependency","name":"Candles Volumes Multi-Period-Market","config":"{\n \"mainUtility\": \"Market Ending Point\"\n}","project":"Superalgos","id":"2f8cefb9-94ad-4126-b666-cfb9744a90c6","savedPayload":{"position":{"x":21854.3506046521,"y":17935.053299121217},"targetPosition":{"x":21815.52774788672,"y":18079.942173064577},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Status Report","name":"New Status Report","id":"a0a61ba9-91cb-4ec7-92fe-134ff079de2d"}}}],"dataDependencies":[{"type":"Data Dependency","name":"Candles Multi-Period-Market","project":"Superalgos","id":"e246ec47-4cad-43e5-a2ec-4a9a12f41ea2","savedPayload":{"position":{"x":21945.431558454387,"y":18004.942173064577},"targetPosition":{"x":21815.52774788672,"y":18079.942173064577},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Dataset Definition","name":"Multi-Period-Market","id":"2b03494a-67d6-47f1-89b6-53fc4c9116a8"}}}],"dataMineDataDependencies":[],"id":"6827047a-9e5f-463f-bceb-e832686975a9","savedPayload":{"position":{"x":21815.52774788672,"y":18079.942173064577},"targetPosition":{"x":21737.882034355964,"y":18369.7199209513},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{"isRunning":false}}},"statusReport":{"type":"Status Report","name":"New Status Report","project":"Superalgos","id":"6d52d241-dc08-45b6-af54-d4a3d3884211","savedPayload":{"position":{"x":21843.948051533946,"y":18263.653903773316},"targetPosition":{"x":21737.882034355964,"y":18369.7199209513},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":2,"arrangementStyle":0},"uiObject":{}}},"executionStartedEvent":{"type":"Execution Started Event","name":"Candles Volumes Multi-Period-Market","project":"Superalgos","id":"bfafbb28-81d6-42c9-bc1e-9711318c8192","savedPayload":{"position":{"x":22027.659782242685,"y":18292.07420742054},"targetPosition":{"x":21737.882034355964,"y":18369.7199209513},"floatingObject":{"isPinned":false,"isFrozen":false,"isCollapsed":false,"angleToParent":2,"distanceToParent":3,"arrangementStyle":0},"uiObject":{},"referenceParent":{"type":"Execution Finished Event","name":"New Execution Finished Event","id":"1824faLine truncated
@@ -0,0 +1,39 @@
{
"topic": "Docs Languages",
"pageNumber": "8",
"type": "Docs In German",
"definition": {
"text": "The Docs pages of Superalgos and other projects integrated are originally written in English. The system allows users to search and browse pages in other languages as well, as long as users have previously contributed the corresponding translations.",
"updated": 1613820592771,
"translations": [
]
},
"paragraphs": [
{
"style": "Text",
"text": "English is considered the default language. When you switch to a different language, the system attempts to show the content in the new language. However, if the translation is not yet available, it shows the English version instead.",
"updated": 1613820612132,
"translations": [
]
},
{
"style": "Text",
"text": "Node types, variable names, the title of pages in the Docs, and a few more elements of Superalgos may not be translated, as they are unique identifiers of the said elements. You will always get those in English.",
"translations": [
]
},
{
"style": "Success",
"text": "If you wish to contribute translations, read the How to Contribute Translations page."
},
{
"style": "Success",
"text": "To switch languages, click on the flags on the footer of the Docs."
},
{
"style": "Note",
"text": "You may only add or delete pages to the Docs when the language is set to English.",
"updated": 1613820648230
}
]
}
@@ -0,0 +1,133 @@
{
"topic": "Launch Scripts",
"pageNumber": "1",
"type": "Launch Scripts",
"definition": {
"text": "There are a number of scripts to help make lauching Superalgos easier and feel more native. The eventual goal is to make Superalgos feel like any other program installed on an operating system.",
"updated": 1620052836275
},
"paragraphs": [
{
"style": "Text",
"text": "The current solution is to use two sets of scripts:",
"updated": 1620051940824
},
{
"style": "List",
"text": "One set to execute node run and actually start Superalgos.",
"updated": 1620051973593
},
{
"style": "List",
"text": "The second to create and place shortcuts to these launch scripts for convenient use.",
"updated": 1620052849823
},
{
"style": "Text",
"text": "Due to the nature of scripts, there are different scripts for each type of operating system. The following page includes a description of each script and what it accomplishes.",
"updated": 1620052862888
},
{
"style": "Note",
"text": "All launch related scripts are held in the Lauch Scripts folder in the main Superalgos directory."
},
{
"style": "Text",
"text": ""
},
{
"style": "Title",
"text": "Basic Launch Scripts"
},
{
"style": "Text",
"text": "These scripts execute the node run command to start Superalgos. They can be run from command line calls or a file browser.",
"updated": 1620052707525
},
{
"style": "Subtitle",
"text": "Windows "
},
{
"style": "Json",
"text": "launch-windows.bat"
},
{
"style": "Subtitle",
"text": "Linux"
},
{
"style": "Json",
"text": "launch-linux.sh"
},
{
"style": "Text",
"text": "This script uses the x-terminal-emulator command for maximum compatiblity across linux flavors."
},
{
"style": "Subtitle",
"text": "Mac"
},
{
"style": "Important",
"text": "Collaborator needed.",
"updated": 1620052924921
},
{
"style": "Subtitle",
"text": ""
},
{
"style": "Title",
"text": "Desktop/Launcher Shortcut Scripts",
"updated": 1620052680945
},
{
"style": "Text",
"text": "These scripts automatically create and place shortcuts to the lauch scripts. They can be run from the command line or file browser.",
"updated": 1620052750606
},
{
"style": "Subtitle",
"text": "Windows"
},
{
"style": "Json",
"text": "create-shortcut-windows.bat",
"updated": 1620053219653
},
{
"style": "Text",
"text": "Currently this script only places a shortcut on the user's desktop. Revision in progress to also place shortcut in the start menu.",
"updated": 1620053366379
},
{
"style": "Subtitle",
"text": "Ubuntu",
"updated": 1620053330166
},
{
"style": "Json",
"text": "Script under development",
"updated": 1620053230467
},
{
"style": "Subtitle",
"text": "Mac"
},
{
"style": "Important",
"text": "Collaborator needed."
},
{
"style": "Title",
"text": "Uninstall Shortcut Scripts",
"updated": 1620053489270
},
{
"style": "Important",
"text": "No scripts started yet. Manual deletion required.",
"updated": 1620053525531
}
]
}
@@ -19,7 +19,6 @@ exports.newSuperalgosBotModulesDiscordBot = function (processIndex) {
const message = "Discord bot has started."
thisObject.sendMessage(message).catch(err => parentLogger.write(MODULE_NAME, "[WARN] initializeDiscordBot -> Discord error -> err = " + err))
} catch (err) {
parentLogger.write(MODULE_NAME, "[WARN] initialize -> err = " + err.stack);
}
@@ -32,10 +31,10 @@ exports.newSuperalgosBotModulesDiscordBot = function (processIndex) {
}
function sendMessage(message) {
const https = require('https');
const https = require('https')
try {
message = JSON.stringify(message);
message = JSON.stringify({content: message})
} catch (err) {
parentLogger.write(MODULE_NAME, "[WARN] announce -> Discord JSON message error -> err = " + err)
}
@@ -43,7 +42,7 @@ exports.newSuperalgosBotModulesDiscordBot = function (processIndex) {
return new Promise((resolve, reject) => {
const requestOptions = {
method: 'POST',
header: { 'Content-Type': 'application/json' }
headers: { 'Content-Type': 'application/json' }
}
const req = https.request(thisObject.webhookURL, requestOptions, (res) => {
@@ -21,7 +21,7 @@ exports.newSuperalgosBotModulesSocialBots = function (processIndex) {
socialBot.botInstance.initialize(config.botToken, config.chatId)
} else if (socialBot.type === "Discord Bot"){
let config = socialBot.config
socialBot.botInstance = TS.projects.superalgos.botModules.discordBot.newSuperalgosBotModulesTelegramBot(processIndex)
socialBot.botInstance = TS.projects.superalgos.botModules.discordBot.newSuperalgosBotModulesDiscordBot(processIndex)
socialBot.botInstance.initialize(config.webhookURL)
}
}
@@ -82,11 +82,9 @@ function newSuperalgosFunctionLibrarySocialBotsFunctions() {
return
}
let params = {
text: "Test message from Superalgos!"
}
let message = "Test message from Superalgos!"
httpRequestJSON(JSON.stringify(params), webhookURL, onResponse)
httpRequestJSON(JSON.stringify({content: message}), webhookURL, onResponse)
function onResponse(err) {
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result) {
@@ -93,6 +93,12 @@ function newSuperalgosDocsFooter() {
}
HTML = HTML + '"></a>'
HTML = HTML + '<a href="#" onClick="UI.projects.superalgos.spaces.docsSpace.changeLanguage(\'DE\')"><img src="Images/Languages/DE.png" title="German" class="docs-footer-language'
if (languageCode === 'DE') {
HTML = HTML + '-selected'
}
HTML = HTML + '"></a>'
HTML = HTML + '<a href="#" onClick="UI.projects.superalgos.spaces.docsSpace.changeLanguage(\'CN\')"><img src="Images/Languages/CN.png" title="Simplified Chinese-Mandarin" class="docs-footer-language'
if (languageCode === 'CN') {
HTML = HTML + '-selected'
@@ -24,6 +24,10 @@ function newSuperalgosUtilitiesLanguages() {
languageLabel = 'Italian'
break
}
case 'DE': {
languageLabel = 'German'
break
}
case 'CN': {
languageLabel = 'Simplified Chinese-Mandarin'
break
+19 -20
View File
@@ -1,4 +1,4 @@
# Superalgos Beta 9 - Getting Started Guide
# Superalgos Beta 10 - Getting Started Guide
All procedures are the same for Windows, Linux, or Mac OS. Raspberry Pi terminal commands have been included for ease of use.
@@ -107,30 +107,15 @@ This creates the `Superalgos` folder in the current directory, which contains th
**C.** Before installing the client on a remote computer in an attempt to access the UI from a different machine, we highly recommend you do a standard installation on your PC / laptop first. Leave your Raspberry Pi or VPS for later, once you have done all available tutorials. This single tip will save you a lot of time: you don't need to add complexity before you learn how to handle the app, and the GUI performs best in a local installation.
## 4. Migrating from Superalgos Beta 8
## 4. Migrating from Superalgos Beta 9
### Refactorings
In order to migrate your own workspaces to Beta 9, you will need to open My Workspaces folder with an IDE like VS Code and do some refactorings. This is what you need to find and replace:
In order to migrate your own workspaces to Beta 10, you will need to open My Workspaces folder with an IDE like VS Code and do some refactorings. This is what you need to find and replace:
| Find | Replace With |
| :---: | :---: |
| Current | Trading Current |
| current | tradingCurrent |
| Last | Trading Last |
| last | tradingLast |
| Episode | Trading Episode |
| episode | tradingEpisode |
| Episode Counters | Trading Episode Counters |
| episodeCounters | tradingEpisodeCounters |
| Episode Statistics | Trading Episode Statistics |
| episodeStatistics | tradingEpisodeStatistics |
| Distance To Event | Distance To Trading Event |
| distanceToEvent | distanceToTradingEvent |
### Renaming of Exchange Folders
In Beta 9, the `exchange id` is used at the code and folder names instead of the exchange name. To migrate to Beta 9 users running on case sensitive Operating Systems (like Linux) must rename their Data-Storage Exchange folders using the Id of the exchange (in the case of Binance, it's the same name, but with lower-case b: binance). If you are using a different exchange, look at its node configuration and use the value at the property `codeName` to name the folder.
| There are currently no refactorings to be made. | |
# Usage
@@ -157,7 +142,21 @@ then
node run minMemo noBrowser
```
## 2. Usage Notes
## 2. Add a Desktop/Launcher Shortcut for Superalgos
**A.** For **Windows** Users
Open a file browser and navigate to the Superalgos Directory.
Under the folder titled `Launch Scripts` double-click the script `create-shortcut-windows.bat`.
You will see a shortcut added to your desktop. You can use it to launch Superalgos like any other program on your computer.
**B.** For **Ubuntu** Users
Script under development
## 3. Usage Notes
We are testing the UI on Google Chrome and Safari on macOS only. It may work on other browsers as well &mdash; or not. If you are running on a different browser and ever need support, make sure you mention that fact upfront, or even better, try on Chrome/Safari first.
+1 -1
View File
@@ -11,7 +11,7 @@ if (
console.log('Superalgos')
console.log('')
console.log('VERSION: Beta 9')
console.log('VERSION: Beta 10')
console.log('')
console.log('WEB: https://www.superalgos.org')
console.log('')