forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: package.json
- Loading branch information
Showing
21 changed files
with
968 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
Gekko is a Bitcoin trading bot for popular Bitcoin exchanges written | ||
in node, it features multiple trading methods using technical analysis. | ||
If you are interested in how Gekko works, read more about Gekko's | ||
architecture here: | ||
https://github.com/askmike/gekko/blob/stable/docs/internals/architecture.md | ||
Disclaimer: | ||
USE AT YOUR OWN RISK! | ||
The author of this project is NOT responsible for any damage or loss caused | ||
by this software. There can be bugs and the bot may not perform as expected | ||
or specified. Please consider testing it first with paper trading and/or | ||
backtesting on historical data. Also look at the code to see what how | ||
it is working. | ||
*/ | ||
|
||
var util = require(__dirname + '/util'); | ||
|
||
var dirs = util.dirs(); | ||
var ipc = require('relieve').IPCEE(process); | ||
|
||
var config; | ||
var mode; | ||
|
||
ipc.on('start', (mode, config) => { | ||
|
||
// force correct gekko env | ||
util.setGekkoEnv('child-process'); | ||
|
||
// force correct gekko mode | ||
util.setGekkoMode(mode); | ||
|
||
// force disable debug | ||
config.debug = false; | ||
util.setConfig(config); | ||
|
||
var pipeline = require(dirs.core + 'pipeline'); | ||
pipeline({ | ||
config: config, | ||
mode: mode | ||
}); | ||
}); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// WIP: | ||
// usage | ||
// | ||
// in gekko dir: | ||
// node core/gekko-controller | ||
|
||
var ForkTask = require('relieve').tasks.ForkTask | ||
var fork = require('child_process').fork | ||
|
||
task = new ForkTask(fork('./core/gekko-child.js')); | ||
|
||
var mode = 'backtest'; | ||
var config = require('../config'); | ||
|
||
task.send('start', mode, config); | ||
|
||
task.on('log', function(data) { | ||
console.log('CHILD LOG:', data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.