Username: Password:

Author Topic: Gunbot v5.0.1 - Poloniex/Bittrex/Kraken/Cryptopia - Core Edition - AllOs_x64 wit  (Read 32494 times)

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Gunbot v5.0.1 - Poloniex/Bittrex/Kraken/Cryptopia - Core Edition - AllOs_x64 with TRADINGVIEWS integration
@GuntharDeNiro GuntharDeNiro released this 4 minutes ago

Changelogs:

- Fix BB calculation
- Fix EMA calculation
- Add STD deviation multiplier (default 2) and SMA period to config.js so you can trigger BB values similar to what you see at exchanges
- Fix STOP LIMIT setting price to sell instead of last market price
- Update to latest KRAKEN roundings policy
- Fix multiple buy issue by checking both OpenOrders and Trading History for last order type = 'buy'
- Attempt to fix scientific notations for tiny numbers passing them ToFixed(8')
- Exposing TA values in logs (EMA1, EMA2, HIGHBB, LOWBB, SMA)
- Fix CRYPTOPIA error that sometimes shows up while getting prices
- Code cleanup
- Implementing TradingViews integration.

Instructions:
If you were already on v4.x just replace executable and use the new config.js:
Code: [Select]
{
"pairs": {
"poloniex": {
"BTC_ZRX": {
"strategy": "bb",

"override": {
"BTC_TRADING_LIMIT": 0.002
}
},
"BTC_DASH": {
"strategy": "bb",

"override": {}
}
},
"kraken": {
"DASHEUR": {
"strategy": "bb",
"override": {}
},
                        "XLTCXXBT": {
"strategy": "bb",
"override": {}
},
},
"bittrex": {
"BTC-LTC": {
"strategy": "bb",
"override": {}
},
                        "BTC-ARK": {
"strategy": "bb",
"override": {}
}
},
"cryptopia": {
"SIGT_BTC": {
"strategy": "bb",

"override": {}
},
                        "OMG_BTC": {
"strategy": "bb",

"override": {}
}
}
},

"exchanges": {
"poloniex": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
},
"kraken": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
},
"bittrex": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
},
"cryptopia": {
"key": "YOUR_API_KEY_HERE",
"secret": "YOUR_SECRET_KEY_HERE"
}

},

"bot": {
"debug": false, // not used in production

"period_storage_ticker": 2000, // number of prices to store to calculate TA indicators
"interval_ticker_update": 25000, // interval to fetch prices (default 25 seconds)

"timeout_buy": 60000, // internal timeout for buy orders
"timeout_sell": 60000, // internal timeout for sell orders

"WATCH_MODE": false, // if true it will not buy/sell
"VERBOSE": true, // if true it will show up more informations on console
"TV_GAIN": 0.6, // minimum GAIN for TradingView strategies (useful to not sell at loss)
"TV_TRADING_LIMIT": 0.001 // quote currency to use for each buy order with TradingView strategies
},

"ws": {
"port": 5001 // port to use to emit websocket API events
},

"imap_listener": {
"enabled": false, // if true, tradingview plugin is enabled (need a license)
"authorized_froms": ["noreply@tradingview.com"], // set here the sender email you want to enable
"user": "YOUR_EMAIL_HERE", // set here your TradingView alerts email
"password": "YOUR_PASSWORD_HERE", // Your email password
"host": "imap.gmail.com", // IMAP server
"port": 993, // port to use with your IMAP server
"tls": true, // tls options
"tlsOptions": {
"rejectUnauthorized": false
}
},

"strategies": {
"bb": {
"BTC_TRADING_LIMIT": 0.0001, // quote currency amount to use for each buy order
"PERIOD": 15, // candlesticks period to use for TA calculations
"EMA1": 2, // EMA1 period
"EMA2": 4, // EMA2 period
"GAIN": 2, // minimum % of GAIN to profit from bought price
"HIGH_BB": 40, // minimum sell point from higher BB
"LOW_BB": 40, // minimum buy point from lower BB
"STDV": 2, //multiplicator for BB formula
"SMAPERIOD": 50, // SMA period for BB formula
"PANIC_SELL": false, // if true sell all coins at actual market price
"DOUBLE_UP": true, // if true use the averaging down
"STOP_LIMIT": 60, // % from bought price to sell if coin value drops
"BUY_ENABLED": true, // if false do not buy
"MIN_VOLUME_TO_BUY": 0.0001, // minimum volume to buy (expressed in quote currency)
"MIN_VOLUME_TO_SELL": 0.0001 // minimum volume to sell (expressed in quote currency)

},
"gain": {
"BTC_TRADING_LIMIT": 0.001,
"PERIOD": 15,
"BUY_LEVEL": 2,
"GAIN": 2,
"EMA1": 200,
"EMA2": 50,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},

"pp": {
"BTC_TRADING_LIMIT": 0.01,
"PP_BUY": 0.00000001, // price to buy with PING PONG strategy
"PP_SELL": 0.12345678, // price to sell with PING PONG strategy
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgain": {
"BTC_TRADING_LIMIT": 0.02,
"PERIOD": 15,
"BUYLVL1": 0.6, // % from lowest EMA to buy at if trend switches to UP in level 1
"BUYLVL2": 2, // % from lowest EMA to buy at if trend switches to UP in level 2
"BUYLVL3": 70, // % from lowest EMA to buy at if trend switches to UP in level 3
"SELLLVL1": 0.6, // % from bought price to sell at if trend switches to DOWN in level 1
"SELLLVL2": 2, // % from bought price to sell at if trend switches to DOWN in level 2
"SELLLVL3": 70, // % from bought price to sell at if trend switches to DOWN in level 3
"BUYLVL": 2, // minimum level to wait before to buy
"SELLLVL": 2, // minimum level to wait before to sell
"LASTPOINTS": 5, // how many last prices to use to decide if trend is UP or DOWN
"AVGPOINTS": 250, // how many last prices to calculate average and compare with LASTPOINTS
"AVGMINIMUM": 0.00000001, // prices rate to ignore during average of AVGPOINTS
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"bbgain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 0.6,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 150,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"gainbb": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUY_LEVEL": 2,
"GAIN": 0.6,
"HIGH_BB": 45,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"bbstepgain": {
"BTC_TRADING_LIMIT": 0.001,
"PERIOD": 15,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 150,
"SELLLVL1": 0.6,
"SELLLVL2": 2,
"SELLLVL3": 70,
"SELLLVL": 2,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgainbb": {
"BTC_TRADING_LIMIT": 0.001,
"PERIOD": 15,
"HIGH_BB": 49,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"BUYLVL1": 0.6,
"BUYLVL2": 2,
"BUYLVL3": 70,
"BUYLVL": 2,
"GAIN": 0.6,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},

"bbpp": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 0.1,
"HIGH_BB": 40,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"PP_SELL": 0.12345678,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"ppbb": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 0.1,
"HIGH_BB": 40,
"LOW_BB": 40,
"STDV": 2,
"SMAPERIOD": 150,
"PP_BUY": 0.00000001,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"gainstepgain": {
"BTC_TRADING_LIMIT": 0.01,
"HIGH_BB": 45,
"LOW_BB": 45,
"STDV": 2,
"SMAPERIOD": 150,
"PERIOD": 15,
"SELLLVL1": 0.6,
"SELLLVL2": 2,
"SELLLVL3": 70,
"SELLLVL": 2,
"BUY_LEVEL": 2,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": true,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgaingain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUYLVL1": 0.6,
"BUYLVL2": 2,
"BUYLVL3": 70,
"BUYLVL": 2,
"GAIN": 2,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"gainpp": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUY_LEVEL": 0.1,
"PP_SELL": 0.12345678,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"ppgain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"GAIN": 2,
"PP_BUY": 0.12345678,
"EMA1": 200,
"EMA2": 50,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"stepgainpp": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"BUYLVL1": 1,
"BUYLVL2": 3,
"BUYLVL3": 5,
"BUYLVL": 2,
"PP_SELL": 0.1,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

},
"ppstepgain": {
"BTC_TRADING_LIMIT": 0.01,
"PERIOD": 15,
"SELLLVL1": 2,
"SELLLVL2": 5,
"SELLLVL3": 10,
"SELLLVL": 2,
"PP_BUY": 0.00000001,
"LASTPOINTS": 5,
"AVGPOINTS": 250,
"AVGMINIMUM": 0.00000001,
"EMA1": 2000,
"EMA2": 1000,
"PANIC_SELL": false,
"DOUBLE_UP": false,
"STOP_LIMIT": 60,
"BUY_ENABLED": true,
"MIN_VOLUME_TO_BUY": 0.001,
"MIN_VOLUME_TO_SELL": 0.001

}


},

"optionals": {
"toOverride": {
"BOUGHT_PRICE": 0.104744

}
}


}

For TradingViews plugin please read tutorial here https://www.tradingview.com/wiki/Creating_and_Managing_Alerts and create alerts with the following syntax:
Code: [Select]
ORDERTYPE_EXCHANGE_PAIR
Examples:
Code: [Select]
BUY_POLONIEX_BTC_ETH
SELL_POLONIEX_USDT_BTC
BUY_KRAKEN_DASHEUR
SELL_KRAKEN_XLTCXXBT
BUY_BITTREX_BTC-ETC
SELL_CRYPTOPIA_ETH_BTC
BUY_CRYPTOPIA_LTC_BTC

TradingView plugin is a paid license: its cost is 0.05 for old and new customers.


How to get your copy of GUNBOT v.5.0.1:

This this release we want to protect your Gunbot copy with some additional layers of security. Please send a PM to this user with your API keys to get instructions for your GUNBOT copy: https://gunthy.org/index.php?action=pm;sa=send;u=1.
DO NOT ACCEPT/DOWNLOAD a copy of GUNBOT v.5.0.1 from any other user or location unless they are an Authorized and Official Gunbot reseller. A complete list of AOG Resellers is available here https://gunthy.org/index.php/topic,1241.0.html
This release is safe enough to be ran and distributed to new customers (terminal cli only), by now i'm starting to include the webGUI in the code and proceed with the final release.

Please report any bug immediately!
Thanks.
~Gun
« Last Edit: September 11, 2017, 07:42:09 AM by Cat »

Offline mos87

  • Rookie
  • *
  • Posts: 15
    • View Profile
Awesome, sounds great. Am I correct that GB owners can upgrade to 5.x for free, but that the plugin (optional) costs extra? Cheers

Offline mfcmasterk

  • Rookie
  • *
  • Posts: 9
    • View Profile
pmed, thank you!

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Awesome, sounds great. Am I correct that GB owners can upgrade to 5.x for free, but that the plugin (optional) costs extra? Cheers
It is.

Offline sylance

  • Rookie
  • *
  • Posts: 34
    • View Profile
So excited but now I'm refreshing my messages every 10-seconds waiting for a reply!  And... while I wait I'm looking for TradingView tutorials. Does anyone have recommendations on how to learn TradingView?

Offline cryptosticks

  • Contributor
  • **
  • Posts: 229
    • View Profile
So excited but now I'm refreshing my messages every 10-seconds waiting for a reply!  And... while I wait I'm looking for TradingView tutorials. Does anyone have recommendations on how to learn TradingView?

I will also need to learn about TradingView!  I like what I see.  But it's a lot for me to try and wrap my mind around at first.

Offline Cyperh

  • Rookie
  • *
  • Posts: 22
    • View Profile
We have to buy the also the Pro version of Trading view or the free account is enough?
after purchase plugin from Gunthar, obviously....

Otherwise, Can GB 5 run without TradingView Plugin?
« Last Edit: September 11, 2017, 07:31:36 AM by Cyperh »

Offline quangvny

  • Rookie
  • *
  • Posts: 5
    • View Profile
I got it today, but when the config is finished and running then the bot appears with the following error, I know that there was a problem, please help me, thanks!
Loading config...
Unhandled rejection TypeError: Cannot read property 'key' of undefined
    at exchanges.map (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Array.map (native)
    at checkLicense (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Bot.start.loadConfig.then (C:\snapshot\Gunbot-master\bot.js:0:0)
    at tryCatcher (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:693:18)
    at Async._drainQueue (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:133:16)
    at Async._drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.__dirname.Async.drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)


Offline lielianjie

  • Rookie
  • *
  • Posts: 6
    • View Profile
Any screeshot ?

Offline jonte

  • Rookie
  • *
  • Posts: 1
    • View Profile
I got it today, but when the config is finished and running then the bot appears with the following error, I know that there was a problem, please help me, thanks!
Loading config...
Unhandled rejection TypeError: Cannot read property 'key' of undefined
    at exchanges.map (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Array.map (native)
    at checkLicense (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Bot.start.loadConfig.then (C:\snapshot\Gunbot-master\bot.js:0:0)
    at tryCatcher (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:693:18)
    at Async._drainQueue (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:133:16)
    at Async._drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.__dirname.Async.drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)

That's an issue with the config file that Gunthar posted in the OP. I'm not sure if he's fixed it now but when he first posted it there was an additional comma that shouldn't be there after the Kraken bit.

Offline vertygo

  • Rookie
  • *
  • Posts: 8
    • View Profile
Getting an error about insufficient funds to put in a sell order, but I have more than enough.

Offline m33lucky

  • Rookie
  • *
  • Posts: 1
    • View Profile
dear Gunthar

i have many copys from you do i need to give all the keys ?

Offline sloaleks

  • Contributor
  • **
  • Posts: 610
    • View Profile
started on Kraken from first turn of the key, awesome ...

Offline huibstar

  • Rookie
  • *
  • Posts: 2
    • View Profile
So excited but now I'm refreshing my messages every 10-seconds waiting for a reply!  And... while I wait I'm looking for TradingView tutorials. Does anyone have recommendations on how to learn TradingView?

i use Youtube

Peace out

Offline StudioIT

  • Rookie
  • *
  • Posts: 1
    • View Profile
Getting an error about insufficient funds to put in a sell order, but I have more than enough.

Same problem here...

Offline quangvny

  • Rookie
  • *
  • Posts: 5
    • View Profile
I got it today, but when the config is finished and running then the bot appears with the following error, I know that there was a problem, please help me, thanks!
Loading config...
Unhandled rejection TypeError: Cannot read property 'key' of undefined
    at exchanges.map (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Array.map (native)
    at checkLicense (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Bot.start.loadConfig.then (C:\snapshot\Gunbot-master\bot.js:0:0)
    at tryCatcher (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:693:18)
    at Async._drainQueue (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:133:16)
    at Async._drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.__dirname.Async.drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)

That's an issue with the config file that Gunthar posted in the OP. I'm not sure if he's fixed it now but when he first posted it there was an additional comma that shouldn't be there after the Kraken bit.
I checked the code on jsonlit, everything exactly, where did the error happen, I also refer to some other config from others, it still.

Offline scarface

  • Rookie
  • *
  • Posts: 4
    • View Profile
same, upon open the bot is crashing with:

"Bot crashed at 2017/09/11 10:36:13
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected token } in JSON at position 389
    at JSON.parse (<anonymous>)
    at Promise (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Promise.module.exports.Promise._execute (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\debuggability.js:300:9)
    at Promise.module.exports.Promise._resolveFromExecutor (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:79:10)
    at loadConfig (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.start (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at Module.require (pkg/prelude/bootstrap.js:1083:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\index.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)"

Offline okgunbot

  • Rookie
  • *
  • Posts: 1
    • View Profile
Same here:
Failed to load config....

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
same, upon open the bot is crashing with:

"Bot crashed at 2017/09/11 10:36:13
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected token } in JSON at position 389
    at JSON.parse (<anonymous>)
    at Promise (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Promise.module.exports.Promise._execute (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\debuggability.js:300:9)
    at Promise.module.exports.Promise._resolveFromExecutor (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:79:10)
    at loadConfig (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.start (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at Module.require (pkg/prelude/bootstrap.js:1083:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\index.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)"
Same here:
Failed to load config....
Smfing wrong in your config.
Check it here https://jsonformatter.curiousconcept.com/

Offline btotheeck

  • Rookie
  • *
  • Posts: 1
    • View Profile
There's an extra comma character in the config file.  Just remove the comma
https://i.imgur.com/b1gvtH8.png

Offline ntsili

  • Rookie
  • *
  • Posts: 27
    • View Profile
I will try it now!
I see that tradingview integration is possible!! That's awesome!!!

Offline Sidewinder

  • Rookie
  • *
  • Posts: 3
    • View Profile
I have attached the config file...
Keep getting the following when starting bot:

Loading config...
Bot crashed at 2017/09/11 17:23:29
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Promise (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Promise.module.exports.Promise._execute (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\debuggability.js:300:9)
    at Promise.module.exports.Promise._resolveFromExecutor (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:79:10)
    at loadConfig (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.start (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at Module.require (pkg/prelude/bootstrap.js:1083:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\index.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
« Last Edit: September 11, 2017, 11:05:30 PM by Sidewinder »

Offline Sidewinder

  • Rookie
  • *
  • Posts: 3
    • View Profile
I have attached the config file...
Keep getting the following when starting bot:

Loading config...
Bot crashed at 2017/09/11 17:23:29
Reason: Failed to load config!!!
Parameter: undefined
Original error: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Promise (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Promise.module.exports.Promise._execute (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\debuggability.js:300:9)
    at Promise.module.exports.Promise._resolveFromExecutor (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:483:18)
    at new Promise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:79:10)
    at loadConfig (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.start (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at Module.require (pkg/prelude/bootstrap.js:1083:31)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\snapshot\Gunbot-master\index.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1173:22)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)

Ok...fixed that, but now get:

Loading config...
Unhandled rejection TypeError: Cannot read property 'port' of undefined
    at new Websocket (C:\snapshot\Gunbot-master\websocket.js:0:0)
    at loadWS (C:\snapshot\Gunbot-master\bot.js:0:0)
    at Bot.start.loadConfig.then (C:\snapshot\Gunbot-master\bot.js:0:0)
    at tryCatcher (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\util.js:16:23)
    at Promise.module.exports.Promise._settlePromiseFromHandler (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise.module.exports.Promise._settlePromise (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise.module.exports.Promise._settlePromise0 (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise.module.exports.Promise._settlePromises (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\promise.js:693:18)
    at Async._drainQueue (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:133:16)
    at Async._drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:143:10)
    at Immediate.__dirname.Async.drainQueues (C:\snapshot\Gunbot-master\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)


Offline lucidqdreams

  • Rookie
  • *
  • Posts: 6
    • View Profile
A lot of the configuration errors could be fixed by validating your Config JSON file. 

Here is a website that you can submit the file to https://jsonlint.com/ 
**Consider removing you secret key before submitting over the internet!!!!

The sample Configuration shows an error as mentioned earlier with an extra comma

Offline Sidewinder

  • Rookie
  • *
  • Posts: 3
    • View Profile
A lot of the configuration errors could be fixed by validating your Config JSON file. 

Here is a website that you can submit the file to https://jsonlint.com/ 
**Consider removing you secret key before submitting over the internet!!!!

The sample Configuration shows an error as mentioned earlier with an extra comma

 :-[
Sorry for the lengthy posts.  I'm pretty new at this kind of stuff.  I'm learning on the fly so forgive me if I over post in the beginning.

Offline NatnekNL

  • Rookie
  • *
  • Posts: 6
    • View Profile
What's up with the BB calculation? I know it takes time to gather enough info but I've running v5.0.1 almost a full day and it's still has the same LOW / HIGH BB.
Every time it makes a sell, almost immediately buy's it back at the same or higher price. Do I miss some new values in my bb config?

My BB settings:

Quote
   "strategies": {
      "bb": {
         "BTC_TRADING_LIMIT": 0.025,
         "PERIOD": 15,
         "HIGH_BB": 44,
         "LOW_BB": 22,
         "BUY_LEVEL": 0.1,
         "GAIN": 1.5,
         "DOUBLE_UP": false,
         "STDV": 2,
         "SMAPERIOD": 50,
         "MIN_VOLUME_TO_BUY": 0.001,
         "MIN_VOLUME_TO_SELL": 0.001,
         "STOP_LIMIT": 60,
         "BUY_ENABLED": true,
         "PANIC_SELL": false,
         "EMA1": 2,
         "EMA2": 4
      },

Offline inergij100

  • Rookie
  • *
  • Posts: 5
    • View Profile
вот так постоянно вылетает подскажите что за ерунда ?

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
вот так постоянно вылетает подскажите что за ерунда ?
"it is cloudflare limiting you, let it run, it recovers " ответ Гана.

Offline inergij100

  • Rookie
  • *
  • Posts: 5
    • View Profile
ХОРОШО ПОДОЖДЕМ СУТКИ ПОСМОТРИМ . СПАСИБО ЗА ОТВЕТ

Offline inergij100

  • Rookie
  • *
  • Posts: 5
    • View Profile
 а не может это происходить что я один ключ ap использую может надо еще пару ключей создать?

Offline inergij100

  • Rookie
  • *
  • Posts: 5
    • View Profile
вот теперь постоянно это идет в боте

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
а не может это происходить что я один ключ ap использую может надо еще пару ключей создать?
Смотря что ты делаешь и хочешь, смотри/читай https://gunthy.org/index.php/topic,1289.0.html

Offline inergij100

  • Rookie
  • *
  • Posts: 5
    • View Profile
об этом я вообще не слышал , видать многое пропустил .... ну просто был в командировке а там этим было некогда заниматься. сейчас почитаю что да как попробую это запустить. если не получится обращусь за помощью к вам

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Hi -

Bought Bittrex licence today from thecryptobot.com, yey!
Downloaded 5.0.1 and 3.3.2
I received 1 one later (fast!) the email stating "Your API key ( also used as your license key ) has been added to our License Server."

I would prefer to use the latest version - for Kraken pairs rounding correction, for example.

Corrected the comma problem in the 5.0.1 config.
Checked the API and secret key, no space before or after, checked bittrex, no problem...
When I run gunthy.exe it sends red messages "invalid licence" for all market places.
Firewall authorized, win 7 64b.

config extract
   "exchanges": {
      "poloniex": {
         "key": "",
         "secret": ""
      },
      "kraken": {
         "key": "",
         "secret": ""
      },
      "bittrex": {
         "key": "b64b...apikeyhere",
         "secret": "secretkeyhere"
      },
      "cryptopia": {
         "key": "",
         "secret": ""
      }

   },
(the remaining is default values)

Sent PM to Gunthar, but maybe you could help?

Is it correct to simply unzip the 5.0.1 and run gunthy.exe?

Or should I run the 3.3.2 before (in its folder), then copy/paste all the files from 5.0.1 in the 3.3.2 folder ?
(knowing the config files seem to be different?)

Or should I copy the gunbot.EXE to the 5.0.1 folder (which hasn't?)

Thanks for any help -

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Hi -

Bought Bittrex licence today from thecryptobot.com, yey!
Downloaded 5.0.1 and 3.3.2
I received 1 one later (fast!) the email stating "Your API key ( also used as your license key ) has been added to our License Server."

I would prefer to use the latest version - for Kraken pairs rounding correction, for example.

Corrected the comma problem in the 5.0.1 config.
Checked the API and secret key, no space before or after, checked bittrex, no problem...
When I run gunthy.exe it sends red messages "invalid licence" for all market places.
Firewall authorized, win 7 64b.

config extract
   "exchanges": {
      "poloniex": {
         "key": "",
         "secret": ""
      },
      "kraken": {
         "key": "",
         "secret": ""
      },
      "bittrex": {
         "key": "b64b...apikeyhere",
         "secret": "secretkeyhere"
      },
      "cryptopia": {
         "key": "",
         "secret": ""
      }

   },
(the remaining is default values)

Sent PM to Gunthar, but maybe you could help?

Is it correct to simply unzip the 5.0.1 and run gunthy.exe?

Or should I run the 3.3.2 before (in its folder), then copy/paste all the files from 5.0.1 in the 3.3.2 folder ?
(knowing the config files seem to be different?)

Or should I copy the gunbot.EXE to the 5.0.1 folder (which hasn't?)

Thanks for any help -
Maybe its help u https://youtu.be/IWY8UBHcW68
In the future there will be subtitles.

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Maybe its help u https://youtu.be/IWY8UBHcW68
In the future there will be subtitles.

Thanks! Nice language to hear :-)
I watched. I didn't use the config updater (4. => 5.) because it's my first use, and I only have 3.3.2 and 5.0.1
I didn't change anything else, just removed the comma and put API and secret key :-(

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Maybe its help u https://youtu.be/IWY8UBHcW68
In the future there will be subtitles.

Thanks! Nice language to hear :-)
I watched. I didn't use the config updater (4. => 5.) because it's my first use, and I only have 3.3.2 and 5.0.1
I didn't change anything else, just removed the comma and put API and secret key :-(
after thet u need write ur pairs for bittrex like:
Code: [Select]
"bittrex": {
"BTC-VIA": { "strategy": "bbgain", "override": {}},
"BTC-WAVES": { "strategy": "bbgain", "override": {}},
"BTC-WINGS": { "strategy": "bbgain", "override": {}},
"BTC-XEL": { "strategy": "bbgain", "override": {}},
"BTC-XEM": { "strategy": "bbgain", "override": {}},
"BTC-XWC": { "strategy": "bbgain", "override": {}},
"BTC-ZEC": { "strategy": "bbgain", "override": {}}
},
"cryptopia"

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
after thet u need write ur pairs for bittrex like:
Code: [Select]
"bittrex": {
"BTC-VIA": { "strategy": "bbgain", "override": {}},
"BTC-WAVES": { "strategy": "bbgain", "override": {}},
"BTC-WINGS": { "strategy": "bbgain", "override": {}},
"BTC-XEL": { "strategy": "bbgain", "override": {}},
"BTC-XEM": { "strategy": "bbgain", "override": {}},
"BTC-XWC": { "strategy": "bbgain", "override": {}},
"BTC-ZEC": { "strategy": "bbgain", "override": {}}
},
"cryptopia"


Yes, it was only an extract of the config.
I have the default pairs :

      "bittrex": {
         "BTC-LTC": {
            "strategy": "bb",
            "override": {}
         },
         "BTC-ARK": {
            "strategy": "bb",
            "override": {}
         }
      },


Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Ah - I tried to use 3.3.2 and it works with my API key/secret!

I set up a single pair, and it works, it's just waiting because the pair price is too high...


In short, it seems the 5.0.1 doesn't work/accept my API/licence key ?
Or I didn't installed it well?

Offline dobcrypto

  • Contributor
  • **
  • Posts: 196
  • Russian - native language
    • View Profile
Ah - I tried to use 3.3.2 and it works with my API key/secret!
I set up a single pair, and it works, it's just waiting because the pair price is too high...
In short, it seems the 5.0.1 doesn't work/accept my API/licence key ?
Or I didn't installed it well?
If 3.3.2 works, then shoud work 5.0.1... thfng wrong in config.
Did u chek config there https://jsonformatter.curiousconcept.com ?

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Sure! I pasted the config to this site (hiding the secret key), it said valid, then I copied it (with a better format), put the secret key back, and it's not working :
https://snag.gy/uLy6e9.jpg

Wonder if this is because I'm on K: drive, and not C:?

See it seems to work on 3.3.2 version:
https://snag.gy/JY7i8p.jpg

Offline wantsomecoin

  • Rookie
  • *
  • Posts: 4
    • View Profile
I have the same problem. Just bought a license a few nights ago... same time this thread started. 5.0.1 just says my license is invalid. The 3.3 version works just fine. I sent a message like the thread requested, but got nothing back. Definitely not a malformed json problem, but I did initially run into that and fixed it.

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
I have the same problem. Just bought a license a few nights ago... same time this thread started. 5.0.1 just says my license is invalid. The 3.3 version works just fine. I sent a message like the thread requested, but got nothing back. Definitely not a malformed json problem, but I did initially run into that and fixed it.

Oh thanks for the info - this drove me nuts.
Now hoping the Dev will send us some news...

Offline gumbi17

  • Rookie
  • *
  • Posts: 3
    • View Profile
PM'ed for download link

Offline dddrgonzooo

  • Rookie
  • *
  • Posts: 3
    • View Profile
When I try to run a second gunbot I get this:

Loading config...
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: bind EADDRINUSE null:5001
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at listenOnMasterHandle (net.js:1385:16)
    at shared (internal/cluster/child.js:105:3)
    at Worker.send (internal/cluster/child.js:76:7)
    at process.onInternalMessage (internal/cluster/utils.js:42:8)
    at emitTwo (events.js:130:20)
    at process.emit (events.js:213:7)
    at process.nextTick (internal/child_process.js:755:12)
    at _combinedTickCallback (internal/process/next_tick.js:95:7)
    at process._tickCallback (internal/process/next_tick.js:161:9)

Any idea what I need to do to get this to work?

Offline auric

  • Rookie
  • *
  • Posts: 13
  • Cryptic beauty
    • View Profile
Change websockets port in config of second gunbot instance.

Offline dddrgonzooo

  • Rookie
  • *
  • Posts: 3
    • View Profile
Change websockets port in config of second gunbot instance.

Got it working - thanks!

Offline mos87

  • Rookie
  • *
  • Posts: 15
    • View Profile
So, does 5.x now work for some people?
Cheers

Offline Casperelli

  • Rookie
  • *
  • Posts: 9
    • View Profile
I keep getting invalid license, annoying

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Me too, and another one above, and no info :-(
Please Gunthar?