Remote Backends

This commit is contained in:
Luis Fernando Molina committed 2020-04-22 14:41:23 +02:00
1 parent 97247e3e29
commit 2ed86e0118
20 files changed
+338 -111

No files matched your search

+16 -2
View File
@@ -37,6 +37,7 @@ function newMarketFiles () {
let finalized = false
let eventSubscriptionIdDatasetUpdated = []
let eventsServerClient
return thisObject
@@ -60,6 +61,7 @@ function newMarketFiles () {
dataset = undefined
product = undefined
periodName = undefined
eventsServerClient = undefined
finalized = true
} catch (err) {
@@ -67,7 +69,18 @@ function newMarketFiles () {
}
}
function initialize (pDataMine, pBot, pSession, pProduct, pDataset, pExchange, pMarket, callBackFunction) {
function initialize (
pDataMine,
pBot,
pSession,
pProduct,
pDataset,
pExchange,
pMarket,
pHost,
pPort,
pEventsServerClient,
callBackFunction) {
try {
exchange = pExchange
market = pMarket
@@ -76,9 +89,10 @@ function newMarketFiles () {
session = pSession
dataset = pDataset
product = pProduct
eventsServerClient = pEventsServerClient
fileCloud = newFileCloud()
fileCloud.initialize(pBot)
fileCloud.initialize(pBot, pHost, pPort)
/* Some Validations */
if (dataset.code.validTimeFrames === undefined) {