Username: Password:

Author Topic: gunbot 24.3.2 PNL  (Read 566 times)

Offline nyclow

  • Rookie
  • *
  • Posts: 1
    • View Profile
gunbot 24.3.2 PNL
« on: June 25, 2022, 03:57:26 PM »
Hi all

with the new version 24.3.2, pnl analysis no longer works, and when I choose the contract, I have this message (with version 24.2 no problem though)


unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at PnlAnalysis.getPnlDashboardData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks(<anonymous>)
    at processTicksAndRejections(internal/process/task_queues.js:97:5) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at PnlAnalysis.getPnlDashboardData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks(<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
}
unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at PnlAnalysis.getPnlDashboardData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks(<anonymous>)
    at processTicksAndRejections(internal/process/task_queues.js:97:5) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at PnlAnalysis.getPnlDashboardData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks(<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
}
unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at PnlAnalysis.getPnlDashboardData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks(<anonymous>)
    at processTicksAndRejections(internal/process/task_queues.js:97:5) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at PnlAnalysis.getPnlDashboardData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks(<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
}

Offline Aitor

  • Administrator
  • *****
  • Posts: 561
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: gunbot 24.3.2 PNL
« Reply #1 on: October 08, 2022, 05:05:14 PM »

Offline StarterUser

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: gunbot 24.3.2 PNL
« Reply #2 on: October 29, 2022, 05:22:21 AM »
I just went from 24.3.2 to 24.6.7 and got this error.

Code: [Select]
unhandledRejection Error: [DecimalError] Invalid argument: undefined

It was just after a market spot sell and the sell did go through OK on the exchange.

I'll see what happens next buy.

EDIT: It did the same on the next buy, the trade took place but that same error came up in the bot command window.

Code: [Select]
+-----------------------------------------------------------------------------------+
¦ ?????L RT Edition  ¦ Version              ¦ Exchange ¦ Pair         ¦ Cycle       ¦
+--------------------+----------------------+----------+--------------+-------------¦
¦ TradingView Plugin ¦ v24.6.7              ¦ binance  ¦ USDT-BTC     ¦ BUY         ¦
+--------------------+----------------------+----------+--------------+-------------¦
¦                    ¦ Ask                  ¦ Bid      ¦ Balance USDT ¦ Balance BTC ¦
+--------------------+----------------------+----------+--------------+-------------¦
¦                    ¦ 20741                ¦ 20740.48 ¦ 34.33560694  ¦ 0           ¦
+--------------------+----------------------+---------------------------------------¦
¦ Callback           ¦  BUY order placed... ¦                                       ¦
+-----------------------------------------------------------------------------------+
------------------------------------------------------------------------------------------------
 ????őL TradingView Edition -  2022/10/30 15:00:13
------------------------------------------------------------------------------------------------
unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
    at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
      at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
}
unhandledRejection Error: [DecimalError] Invalid argument: undefined
    at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
    at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
    at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js) Promise {
  <rejected> Error: [DecimalError] Invalid argument: undefined
      at new Decimal (C:\snapshot\enricoranucci\Documents\GitHub\Mio\node_modules\decimal.js-light\decimal.js:1900:15)
      at C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js
      at PnlAnalysis._forEachOrdersOfKeys (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at async PnlAnalysis.getPnlStatisticData (C:\snapshot\enricoranucci\Documents\GitHub\Mio\gui\classes\pnl-analysis\index.js)
}
« Last Edit: October 30, 2022, 06:28:44 PM by StarterUser »