Merge pull request #28 from AAMasters/develop

Minio Integration
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2019-04-09 08:55:34 +02:00
commit f9dc5d60b8
2 files changed
+22 -15

No files matched your search

+17 -15
View File
@@ -1,5 +1,20 @@
/* User Interface Colors */
const STORAGE_PROVIDER = 'AAWeb';
const SUPPORTED_EXCHANGES = ["Poloniex"];
const SUPPORTED_MARKETS = [
{
assetA: "USDT",
assetB: "BTC",
}
];
const DEFAULT_EXCHANGE = "Poloniex";
const DEFAULT_MARKET = {
assetA: "USDT",
assetB: "BTC",
};
UI_COLOR = {
DARK: "48, 48, 54",
LIGHT: "234, 226, 222",
@@ -94,20 +109,7 @@ function convertTimePeriodToName(pTimePeriod) {
window.AT_BREAKPOINT = false;
const SUPPORTED_EXCHANGES = ["Poloniex", "Coss"];
const SUPPORTED_MARKETS = [
{
assetA: "USDT",
assetB: "BTC",
}
];
const DEFAULT_EXCHANGE = "Coss";
const DEFAULT_MARKET = {
assetA: "USDT",
assetB: "BTC",
};
const USDT_BTC_HTH = 19900; // This is needed to know the scale of the market time line.
const USDT_BTC_HTH = 19900; // This is needed to know the scale of the market time line.
const WIDHTER_VOLUME_BAR_BASE_FACTOR = 2.5;
const LESS_WIDHTER_VOLUME_BAR_TOP_FACTOR = 1 / 4;
@@ -174,4 +176,4 @@ const CHART_SPACE_HEIGHT = browserCanvas.height * 100;
function toRadians(angle) {
return angle * (Math.PI / 180);
}
}
+5
View File
@@ -106,6 +106,11 @@ function newTimeMachine () {
let leftToInitialize = SUPPORTED_EXCHANGES.length * SUPPORTED_MARKETS.length - 1 // The default exchange and market was already initialized.
let alreadyInitialized = 0
if (alreadyInitialized === leftToInitialize) {
callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE)
return
}
for (let i = 0; i < SUPPORTED_EXCHANGES.length; i++) {
for (let j = 0; j < SUPPORTED_MARKETS.length; j++) {
let exchange = SUPPORTED_EXCHANGES[i]