WIPP
This commit is contained in:
parent
df5d9cac89
commit
a375adb8b9
3 changed files with 516 additions and 496 deletions
|
|
@ -10,8 +10,14 @@ const TRADE_INTERVAL = 10 * T.seconds
|
|||
const PONG_INTERVAL = 10 * T.seconds
|
||||
const PONG_CLEAR_INTERVAL = 1 * T.day
|
||||
|
||||
function start () {
|
||||
let pi = plugins
|
||||
let pi
|
||||
|
||||
function reload (settings) {
|
||||
pi = plugins(settings)
|
||||
}
|
||||
|
||||
function start (settings) {
|
||||
reload(settings)
|
||||
|
||||
pi.executeTrades()
|
||||
pi.pong()
|
||||
|
|
@ -32,4 +38,4 @@ function start () {
|
|||
setInterval(() => pi.pongClear(), PONG_CLEAR_INTERVAL)
|
||||
}
|
||||
|
||||
module.exports = {start}
|
||||
module.exports = {start, reload}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue