Trying to syncronize AAWeb with AACloud. Not working yet.

This commit is contained in:
Luis Fernando Molina committed 2018-09-16 17:42:35 +02:00
1 parent c36e87f09f
commit 1b940144af
6 files changed
+26 -3

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ function webRequire(pModulePath) {
MODULE.newPoloniexAPIClient = newPoloniexAPIClient;
return MODULE;
}
case './ExchangeAPI': {
case './Exchange/ExchangeAPI': {
let MODULE = {};
MODULE.newExchangeAPI = newExchangeAPI;
+5
View File
@@ -32,6 +32,11 @@ function newCloudVM() {
window.CURRENT_EXECUTION_AT = "Browser";
window.STORAGE_PERMISSIONS = ecosystem.getStoragePermissions();
window.MARKET = {
assetA: "USDT",
assetB: "BTC"
};
/*
When running at the browser, the AACloud VM will look for this data, in this case it does not contain any key or secret, since the browser only know the
session token the user received when he logged in.
@@ -7,7 +7,6 @@
let thisObject = {
API: {
analizeResponse: analizeResponse,
returnOpenOrders: returnOpenOrders,
returnOrderTrades: returnOrderTrades,
buy: buy,
+2
View File
@@ -56,6 +56,7 @@
<SubType>Code</SubType>
</Compile>
<Compile Include="CloudVM\Exchange\ExchangeAPI.js" />
<Compile Include="Exchange\ExchangeAPI.js" />
<Compile Include="Server\Exchange\ExchangeAPI.js" />
<Compile Include="Server\Exchange\exchangeUtils.js" />
<Compile Include="Globals.js">
@@ -230,6 +231,7 @@
<Folder Include="Azure\" />
<Folder Include="CloudVM\" />
<Folder Include="CloudVM\Exchange\" />
<Folder Include="Exchange\" />
<Folder Include="Server\Exchange\" />
<Folder Include="Files\" />
<Folder Include="FloatingSpace\" />
+1 -1
View File
@@ -64,7 +64,7 @@
"FloatingSpace/FloatingObject.js",
"FloatingSpace/FloatingLayer.js",
"CloudVM/Exchange/ExchangeAPI.js",
"Exchange/ExchangeAPI.js",
"CloudVM/CloudSupport.js",
"CloudVM/CloudRequire.js",
"CloudVM/WebFS.js",
+17
View File
@@ -451,6 +451,23 @@ function onBrowserRequest(request, response) {
}
break;
case "Exchange": // This means the Exchange folder.
{
let filePath = requestParameters[2];
if (requestParameters[3] !== undefined) {
filePath = filePath + "/" + requestParameters[3];
}
if (requestParameters[4] !== undefined) {
filePath = filePath + "/" + requestParameters[4];
}
respondWithFile('./Exchange/' + filePath, response);
}
break;
case "Images": // This means the Scripts folder.
{