Username: Password:

Author Topic: my Gunbot GUI crashes gunbot  (Read 9606 times)

Offline Alphadan

  • Rookie
  • *
  • Posts: 42
    • View Profile
my Gunbot GUI crashes gunbot
« on: March 20, 2020, 06:43:50 PM »
This is the error:

All good...keep calm and Gunbot.
{ TypeError: Cannot read property 'length' of undefined
    at Statement.<anonymous> (/snapshot/pi/Desktop/gb/gui/sockets/base.js:0:0)
--> in Database#all('SELECT * FROM portfolio', [Function])
    at Socket.<anonymous> (/snapshot/pi/Desktop/gb/gui/sockets/base.js:0:0)
    at Socket.emit (events.js:159:13)
    at SocketNamespace.handlePacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/namespace.js:335:22)
    at Manager.onClientMessage (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/manager.js:518:38)
    at WebSocket.Transport.onMessage (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transport.js:369:20)
    at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:39:10)
    at Parser.emit (events.js:159:13)
    at finish (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:295:16)
    at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:306:15)
    at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
    at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
    at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:305:18)
    at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
    at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
    at expectData (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:303:16)
    at 1 (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:320:9)
    at Parser.processPacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:553:8)
    at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
    at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
    at Parser.endPacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:573:8)
    at finish (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:298:14)
    at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:306:15)
    at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
    at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
    at Parser.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:305:18)
    at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
    at Parser.expect (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:519:10)
    at expectData (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:303:16)
    at 1 (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:320:9)
    at Parser.processPacket (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:553:8)
    at Parser.add (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:482:24)
    at Socket.<anonymous> (/snapshot/pi/Desktop/gb/node_modules/socket.io/lib/transports/websocket/hybi-16.js:146:17)
    at Socket.emit (events.js:159:13)
    at addChunk (_stream_readable.js:265:12)
    at readableAddChunk (_stream_readable.js:252:11)
    at Socket.Readable.push (_stream_readable.js:209:10)
    at TCP.onread (net.js:598:20) __augmented: true } 'Uncaught Exception thrown'
Loading config...
(Telegram) Starting bot as Gunbot
   info  - socket.io started
GUI Server Deployed: http://localhost:5000


Is there any way to disable the GUI since its only causing me troubles, I mean something like a cmd to the launch without loading GUI or http server so my PI could free some resources.

also i got this message:


************************************************************************************************
GUNBOT RT says: Trailing Buy limits are still good...waiting to buy...
************************************************************************************************
************************************************************************************************
BEGIN TSSL PROCESS FOR BUY STRATEGY
************************************************************************************************
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: TrailingBuy limit 137.31
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: Last price         138.20000000   |  Target to buy:   139.17471312
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: Stop limit     138.1473
------------------------------------------------------------------------------------------------
Price raising up: activating Stop limit!!!
************************************************************************************************
BEGIN TSSL PROCESS FOR SELL STRATEGY
************************************************************************************************
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: TrailingStop limit 139.585455
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: Last price         137.67000000   |  Target to sell:   NaN
------------------------------------------------------------------------------------------------
2020/03/20 16:37:48: StopLoss limit     138.196545
------------------------------------------------------------------------------------------------
Price to sell is not in TSSL range
GBRT_18.3.8 PAX-ETH@binance Round #3541 2020/03/20 16:37:48
┌───────────────────┬────────────────────┬──────────────────┬──────────────────┬───────────────┬───────────────────┬─────────────────────┐
│ ɢƱƝɮõͳ RT Edition │ Version            │ Round            │ Exchange         │ Pair          │ Strategy          │ Timestamp           │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ GBRT 18.3.8        │ 3541             │ binance          │ PAX-ETH       │ tssl/tssl         │ 2020/03/20 16:37:49 │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Core checks       │ Stop limit hit     │ Can we buy       │ Can we sell      │ Panic sell    │ Can average       │ REVERSAL TRADE      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │       NO           │     YES          │      NO          │     NO        │      NO           │       NO            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Indicators        │ EMA1               │ EMA2             │ HIGHBB           │ LOWBB         │ RSI               │ MFI BTC/USD         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 141.80257762       │ 140.58051829     │ 151.20916406     │ 134.00203593  │ 37.84085107       │ 40.95623502         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ macd               │ MACD_SIGNAL      │ MACD_H           │ STOCH_K       │ STOCH_D           │ PAIR MFI            │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ -2.38482861        │ -1.20588382      │ -1.17894478      │ 23.39449541   │ 40.11054312       │ 23.46641044         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ EMA spread         │ DI -             │ DI +             │ adx           │ FORECAST          │ FORECAST TREND      │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 1.22205932 ⇌       │ 38.01602193      │ 10.28215753      │ 34.6904387    │ 138.0126486501779 │ ⇩ ⇩ ⇩ ⇩             │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ ATR TRAILING STOP  │ ATR SHORT        │ ATR LONG         │ STOCH RSI     │ DEPTH PRESSURE    │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 2.5309012          │ 136.40454939     │ 139.4654506      │ 0             │      54%          │                     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Trading Checks    │      Ask           │      Bid         │ PAX Balance      │ ETH Balance   │ ETH On Orders     │ BreakEven point     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 138.2 ⇧            │ 137.67 ⇧         │ 28.7785134       │ 0.00000566    │ 0                 │ 0                   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ ENTRY POINT        │ EXIT POINT       │ STOP LIMIT       │    XTREND     │ LAST TRADE P/L    │ PAX LAST SALE P/L   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 138.89100000       │ 0.00000000       │ 0.00000000       │    DOWN!!!    │ NaN %             │ 28.70656712         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ RT BUY             │ RT SELL          │  Last buy        │  Last sell    │ BAG VALUE PAX     │ INITIAL BAG VALUE   │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ NaN                │ NaN              │ 0                │ 114.66        │  0.00000000       │    0.00000000       │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ BUYBACK            │ Original Price   │   Infinity%      │   20%         │    NaN%           │ Available Funds     │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 0.00000000         │ 0.00000000       │                  │               │                   │ 28.77841340         │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│ Profit/Loss       │      Pair P/L      │  Normal Trading  │ Reversal Trading │ Last 24h      │ Last week         │ Last month          │
├───────────────────┼────────────────────┼──────────────────┼──────────────────┼───────────────┼───────────────────┼─────────────────────┤
│                   │ 0.00000000         │ 0.00000000       │ 0.00000000       │ 0.00000000    │ 0.00000000        │ 0.00000000          │
└───────────────────┴────────────────────┴──────────────────┴──────────────────┴───────────────┴───────────────────┴─────────────────────┘
l51000
1403
┌───────────────────┬──────────────────────────────────────┐
│ ɢƱƝβʘŦ RT Edition │                                      │
├───────────────────┼─────────┬────────────┬───────┬───────┤
│ BOUGHT!!!         │ Amount: │ 0.00001447 │ Rate: │ 138.2 │
└───────────────────┴─────────┴────────────┴───────┴───────┘

but checking my binance history i don't see any past order also why is it buying such small amount   :(


also the telegram messages are not being delivering is there any way to test if the telegram settings are correct a button to send a test msg or something?

Offline Alphadan

  • Rookie
  • *
  • Posts: 42
    • View Profile
Re: my Gunbot GUI crashes gunbot
« Reply #1 on: March 20, 2020, 10:20:17 PM »
disbled the GUI with:

https://wiki.gunthy.org/setup-and-general-settings/installation/headless-mode


but still need help with:


l51000
1403
┌───────────────────┬──────────────────────────────────────┐
│ ɢƱƝβʘŦ RT Edition │                                      │
├───────────────────┼─────────┬────────────┬───────┬───────┤
│ BOUGHT!!!         │ Amount: │ 0.00001447 │ Rate: │ 138.2 │
└───────────────────┴─────────┴────────────┴───────┴───────┘

but actually not buying anything feels like I'm missing something. Is like trying to buy under the minimum allowed by the exchange and as result not buying anything may be that??

also i would love to test why telegram messages aren't being sent.

Offline Alphadan

  • Rookie
  • *
  • Posts: 42
    • View Profile
Re: my Gunbot GUI crashes gunbot
« Reply #2 on: March 20, 2020, 10:31:23 PM »
Be sure you don’t have pairs with very small funds. For example, if you have 0.000024 ETH, the pair BTC-ETH won’t make any trade. Why? Because the amount is so small that it doesn’t reach to the minimum tradeable amount. So the bot will try to sell it and it won’t be allowed by the exchange. On the other hand, it won’t buy until it sells the amount, so it gets into an endless loop. Conclusion: get rid of the dust!!

I think this may be causing the issue, ill clean the dust then ill report back if solved.

Offline Alphadan

  • Rookie
  • *
  • Posts: 42
    • View Profile
Re: my Gunbot GUI crashes gunbot
« Reply #3 on: March 22, 2020, 12:47:31 PM »
almost all the issued were solved, the bottle neck in the pi was memory related,

1 Runing raspbian lite with no desktop, solved the memory issues no more hangs.
2 The reason for the bot trying to buy under the exchange minimun trade was fixed by setting:

"TRADING_LIMIT": 5
"MIN_VOLUME_TO_BUY": 4,
"MIN_VOLUME_TO_SELL": 4,

Integer numbers since im trading USD pair. small amounts because im just testing the bot 1st.

only 2 pending issues are:

1 Telegram messages not delivering
2 GUI had to be disabled now i have more memory i could try it again to check if that was also memory related.


UPDATE STILL NOT BUYING.

« Last Edit: March 22, 2020, 02:35:30 PM by Alphadan »

Offline CryptoDROI

  • Rookie
  • *
  • Posts: 37
  • Get Gunbot Now!
    • View Profile
    • CryptoDROI Gunbot Reseller
Re: my Gunbot GUI crashes gunbot
« Reply #4 on: March 22, 2020, 03:09:33 PM »
It won't buy because those numbers are lower than the "minimum trading rule" at Binance

Try MVTS/TB: 11 and TL: 12 as a minimum don't go lower than that

You can't buy lower than $10 at Binance and if it takes the fees from there even $10 won't do it hence try at least $11
Authorized Gunbot Reseller https://cryptodroi.com/