Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Poloniex from code and added Coss to config #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Multi-Period-Daily/User.bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, BLOB_S

const MODULE_NAME = 'User Bot'

const EXCHANGE_NAME = 'Poloniex'

thisObject = {
initialize: initialize,
start: start
Expand Down Expand Up @@ -178,7 +176,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, BLOB_S
if (FULL_LOG === true) { logger.write(MODULE_NAME, '[INFO] start -> Entering function.') }

let market = global.MARKET
let reportFilePath = EXCHANGE_NAME + '/Processes/' + bot.process
let reportFilePath = global.EXCHANGE_NAME + '/Processes/' + bot.process
let executionTime
let lastCandles
let dateForLastOliviaFile
Expand Down Expand Up @@ -423,7 +421,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, BLOB_S
let cache = dailyFileCache.get(cachePosition)
onDailyFileReceived(global.DEFAULT_OK_RESPONSE, cache)
} else {
let filePath = 'AAMasters/AAOlivia.1.0/AACloud.1.1/Poloniex/dataSet.V1/Output/Candles/Multi-Period-Daily/' + folderName + '/' + datePath
let filePath = 'AAMasters/AAOlivia.1.0/AACloud.1.1/' + global.EXCHANGE_NAME + '/dataSet.V1/Output/Candles/Multi-Period-Daily/' + folderName + '/' + datePath
let fileName = market.assetA + '_' + market.assetB + '.json'

oliviaStorage.getTextFile(filePath, fileName, onFileReceived)
Expand Down
6 changes: 2 additions & 4 deletions Multi-Period-Market/User.bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, BLOB_S

const MODULE_NAME = 'User Bot'

const EXCHANGE_NAME = 'Poloniex'

thisObject = {
initialize: initialize,
start: start
Expand Down Expand Up @@ -178,7 +176,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, BLOB_S
if (FULL_LOG === true) { logger.write(MODULE_NAME, '[INFO] start -> Entering function.') }

let market = global.MARKET
let reportFilePath = EXCHANGE_NAME + '/Processes/' + bot.process
let reportFilePath = global.EXCHANGE_NAME + '/Processes/' + bot.process
let executionTime
let lastCandles
let marketFileCache = new Map()
Expand Down Expand Up @@ -402,7 +400,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, BLOB_S

onMarketFileReceived(global.DEFAULT_OK_RESPONSE, marketFileCache.get(n))
} else {
let filePath = 'AAMasters/AAOlivia.1.0/AACloud.1.1/Poloniex/dataSet.V1/Output/Candles/Multi-Period-Market/' + folderName
let filePath = 'AAMasters/AAOlivia.1.0/AACloud.1.1/' + global.EXCHANGE_NAME + '/dataSet.V1/Output/Candles/Multi-Period-Market/' + folderName
let fileName = market.assetA + '_' + market.assetB + '.json'

oliviaStorage.getTextFile(filePath, fileName, onFileReceived)
Expand Down
33 changes: 28 additions & 5 deletions this.bot.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"patch": 0
},
"devTeam": "AAVikings",
"profilePicture": "Gauss.png",
"profilePicture": "Gauss.png",
"dataSetVersion": "dataSet.V1",
"processes": [
{
Expand Down Expand Up @@ -121,14 +121,35 @@
{
"codeName": "Multi-Period-Market",
"type": "Market Files",
"validPeriods": [ "24-hs", "12-hs", "08-hs", "06-hs", "04-hs", "03-hs", "02-hs", "01-hs" ],
"validPeriods": [
"24-hs",
"12-hs",
"08-hs",
"06-hs",
"04-hs",
"03-hs",
"02-hs",
"01-hs"
],
"filePath": "AAVikings/AAGauss.1.0/AACloud.1.1/@Exchange/dataSet.V1/Output/LRC-Points/Multi-Period-Market/@Period",
"fileName": "@[email protected]"
},
{
"codeName": "Multi-Period-Daily",
"type": "Daily Files",
"validPeriods": [ "45-min", "40-min", "30-min", "20-min", "15-min", "10-min", "05-min", "04-min", "03-min", "02-min", "01-min" ],
"validPeriods": [
"45-min",
"40-min",
"30-min",
"20-min",
"15-min",
"10-min",
"05-min",
"04-min",
"03-min",
"02-min",
"01-min"
],
"filePath": "AAVikings/AAGauss.1.0/AACloud.1.1/@Exchange/dataSet.V1/Output/LRC-Points/Multi-Period-Daily/@Period/@Year/@Month/@Day",
"fileName": "@[email protected]",
"dataRange": {
Expand All @@ -140,6 +161,9 @@
"exchangeList": [
{
"name": "Poloniex"
},
{
"name": "Coss"
}
],
"plotter": {
Expand All @@ -149,5 +173,4 @@
}
}
]

}
}