Username: Password:

Author Topic: need help fixing error with GUNBOT 3.1. maybe bug?  (Read 32120 times)

Offline Doc

  • Rookie
  • *
  • Posts: 35
    • View Profile
need help fixing error with GUNBOT 3.1. maybe bug?
« on: April 24, 2017, 01:15:40 PM »
I have 8 couples running, first I made BTC_ETH and used BTC_ETH-config.js to make all others, but this is the only one giving the error. I'm puzzled... o_0

2017/04/24 14:05:46 Error: BoughtPrice not set!!!

thx for help


Quote
Loading config...
2017/04/24 14:05:42 Creating market client for BTC_ETH pair
Activating hot reconfig...
[ ---- poloniex -- 2017/04/24 14:05:42  --  Gunbot v3.1b cycle #1 -------------------------- ]
Loaded  poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.04015002  Bal.BTC 0.07034545  Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading...
No opened orders
boughtPrice  undefined
direction price steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/24 14:05:46 Error: BoughtPrice not set!!!
!!! Cycle 2 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/24 14:05:56  --  Gunbot v3.1b cycle #2 -------------------------- ]
Loaded  poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.04015  Bal.BTC 0.07034545  Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading...
No opened orders
boughtPrice  undefined
direction price falls (-1)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/24 14:05:59 Error: BoughtPrice not set!!!
!!! Cycle 3 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/24 14:06:09  --  Gunbot v3.1b cycle #3 -------------------------- ]

Quote
var config = {
   //-----------------------------------------------
   //  PRIMARY SETTINGS
   //-----------------------------------------------
   DEFAULT_MARKET_NAME:"poloniex",
   DEFAULT_CURRENCY_PAIR:"BTC_ETH",   //  single pair format for all markets !

   BTC_TRADING_LIMIT: 0.040,// max amount of BTC balance to use for each pair   
   SECURITY_MARGIN: 60, // sell all balance if currency decreases x% after you bought it
   MIN_VOLUME_TO_BUY: 0.0005,  // bitrex min volume
   LOW_BB: 5, //percentual from the lowest Bollinger Band you want to buy
   HIGH_BB: 5, //percentual from the highest Bollinger Band you want to sell
   SELL_STRATEGY: 'BB', //sell strategy to use (BB or GAIN)
   BUY_STRATEGY: 'BB', // buy strategy to use (BB or GAIN)
   BUY_LEVEL: 1, //percentual from weighted price you want to buy if the Bollinger Band are not complete yet or you want to use GAIN strategy

   //---BITTREX
   BITTREX_KEY:'',
   BITTREX_SECRET:'',
   BITTREX_GAIN: 2, // margin to sell when currency increases its value (example: sell when currency increases 2% of paid value - used only when Bollinger Band are not completely calculated or if you select GAIN strategy)
   BITTREX_PRICE_METHOD:'vWP',// vWP OR ohlc  "price to buy" definition method
   BITTREX_VWA_1_INTERVAL: 10,// weighted average interval in minutes
   BITTREX_VWA_2_INTERVAL: 120,// weighted average interval in minutes


   //---KRAKEN
   KRAKEN_ASSET_PAIR:'XETHXXBT',

   KRAKEN_KEY: '',
   KRAKEN_SECRET: '',

   KRAKEN_GAIN: 2, // margin to sell when currency increases its value (example: sell when currency increases 2.5% of paid value - used only when Bollinger Band are not completely calculated or if you select GAIN strategy)
   KRAKEN_PRICE_METHOD:'vWP',// vWP OR ohlc  "price to buy" definition method
   KRAKEN_VWA_1_INTERVAL: 1,// weighted average interval in minutes
   KRAKEN_VWA_2_INTERVAL: 15,// weighted average interval in minutes

   //---POLONIEX
   POLONIEX_KEY: '***',
   POLONIEX_SECRET: '***',

   GAIN: 2, // margin to sell when currency increases its value (example: sell when currency increases 2.5% of paid value - used only when Bollinger Band are not completely calculated or if you select GAIN strategy)
   POLONIEX_PRICE_METHOD:'ohlc',// vWP OR ohlc  "price to buy" definition method (use ohlc with Poloniex)
   POLONIEX_VWA_1_INTERVAL: 0.02,// weighted average interval in hours
   POLONIEX_VWA_2_INTERVAL: 0.04,// weighted average interval in hours
   

   

   //-----------------------------------------------
   //   STARTUP OPTIONS
   //-----------------------------------------------

   SELL_ON_START:false,   
   CANCEL_SELL_ORDERS_ON_START:false,
   CANCEL_BUY_ORDERS_ON_START:false,
   CANCEL_OPEN_ORDERS_ON_START:false,

   MAX_LATEST_PRICES: 500,// limit of latest prices to analyze to determine if price is growing or falling and to calculate Bollinger Band: the higher this amount the Best are Bollinger Band. Use 30 for GAIN strategy and 500 for BB.
   MAX_LATEST_DIRECTIONS:30,// limit of latest  price directions ,used in supergun detection
   MAX_LAST_ORDERS:500,  // keeping last orders bought
   PERIOD: 15,   // candlestick period
   
   SAVEFILE_SUFFIX: '-save.json',
 
 
   //-----------------------------------------------
   //   BOT TIMINGS
   //-----------------------------------------------
   API_CALLS_DELAY:777,
   BOT_SLEEP_DELAY:(1000)*22,// bot cycle delay (koef*sec)
   BOT_MAX_LIFETIME:(1000*60)*60*24,// overall bot lifetime(koef*min*hours) If you dont change this, the bot will stop to operate in 24 hours,
   BOT_ON_FAIL_DELAY:(1000)*10, // bot repeat cycle delay if previous cycle failed  (koef*sec)
   //-----------------------------------------------
   // EMAIL
   //-----------------------------------------------
   ALERT_ON_NO_FUNDS:false,  // email on insufficcient funds
   SMTP_EMAIL: '%40@gmail.com',
   ALERT_EMAIL:'********',
   SMTP_PASSWORD: '**********',
   SMTP: true,
   SMTP_PROTOCOL: 'SMTPS',
   SMTP_HOST: 'smtp.gmail.com',


   //-----------------------------------------------
   //  DEBUG
   //-----------------------------------------------
   DEBUG_LOG:false,
   I_REALLY_WANT_IT:false,// debug hardcode hack
   BUY_SMALL_PORTION:1,// debug volume limiter,must be  1 > x > 0
   INSUFFICIENT_FUNDS_ON_SELL_FIX: 0.0005,


   //-----------------------------------------------
   //  OUTPUT
   //-----------------------------------------------
   MAX_LATEST_PRICES_SHOWN: 0, // limit of latest prices to show in console.log
   SHOW_LASTEST_DIRECTIONS:false,  // show chart in console
   MAX_LATEST_DIRECTIONS_SHOWN:0, // chart height
   LASTEST_DIRECTIONS_LIST_WIDTH:0, // chart width

   //-----------------------------------------------
   //   OTHER (might be deprecated/not in use)
   //-----------------------------------------------
   BTC_BALANCE: 2// btc balance for test purposes,
};
 
module.exports = config;

Offline Doc

  • Rookie
  • *
  • Posts: 35
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #1 on: April 24, 2017, 02:42:24 PM »
just got an idea: maybe it's saying GUNBOT doesn't know the price I bought the ETH balance he reads, am I right?
If this is the case I didn't buy those, I just made a deposit from a different address, is this a problem?

Offline Cyperh

  • Rookie
  • *
  • Posts: 22
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #2 on: April 25, 2017, 06:27:19 AM »
Try move your BTC_xxx-save.json out of gunbot folder and start the selected pair.

Offline Doc

  • Rookie
  • *
  • Posts: 35
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #3 on: April 25, 2017, 08:16:12 PM »
it doesn't work

Code: [Select]
Loading config...
2017/04/25 21:10:53 Creating market client for BTC_ETH pair
Activating hot reconfig...
[ ---- poloniex -- 2017/04/25 21:10:53  --  Gunbot v3.1b cycle #1 -------------------------- ]
Load poloniex-BTC_ETH-save.json doesn`t exist.
::::: collecting market data...
++++
LP 0.03925963  Bal.BTC 2e-8  Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice  0
direction price steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:10:57 Error: BoughtPrice not set!!!
!!! Cycle 2 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/25 21:11:07  --  Gunbot v3.1b cycle #2 -------------------------- ]
Loaded  poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.03925961  Bal.BTC 2e-8  Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice  undefined
direction price falls (-1)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:11:10 Error: BoughtPrice not set!!!
!!! Cycle 3 failed. Will repeat in 10s

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #4 on: April 25, 2017, 08:42:01 PM »
it doesn't work

Code: [Select]
Loading config...
2017/04/25 21:10:53 Creating market client for BTC_ETH pair
Activating hot reconfig...
[ ---- poloniex -- 2017/04/25 21:10:53  --  Gunbot v3.1b cycle #1 -------------------------- ]
Load poloniex-BTC_ETH-save.json doesn`t exist.
::::: collecting market data...
++++
LP 0.03925963  Bal.BTC 2e-8  Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice  0
direction price steady (0)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:10:57 Error: BoughtPrice not set!!!
!!! Cycle 2 failed. Will repeat in 10s
[ ---- poloniex -- 2017/04/25 21:11:07  --  Gunbot v3.1b cycle #2 -------------------------- ]
Loaded  poloniex-BTC_ETH-save.json
::::: collecting market data...
++++
LP 0.03925961  Bal.BTC 2e-8  Bal.ETH 1.89725248(0) vWPr 0 lowBB 0.00000000 highBB 0.00000000
We dont have enough statistics yet, using LEVELS for trading... No opened orders
boughtPrice  undefined
direction price falls (-1)
PriceToBuy 0.0000 priceToSell --not set--
we have altcoins: 1.89725248
2017/04/25 21:11:10 Error: BoughtPrice not set!!!
!!! Cycle 3 failed. Will repeat in 10s

Update to the new one, i fixed that

Offline danialt

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #5 on: April 29, 2017, 06:41:03 PM »
i'm getting the same, downloaded the 3.1b the other day and still getting this. any ideas?

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #6 on: April 29, 2017, 06:44:13 PM »
just got an idea: maybe it's saying GUNBOT doesn't know the price I bought the ETH balance he reads, am I right?
If this is the case I didn't buy those, I just made a deposit from a different address, is this a problem?
Yes buddy: v3 doesnt have manual trades included so it doesnt know the price you bought manual added coins.

Offline danialt

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #7 on: April 29, 2017, 07:35:15 PM »
oh, in my case they are trades done by gunbot, but where I've restarted gunbot it does not find some of the previous trades

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #8 on: April 29, 2017, 07:57:45 PM »
oh, in my case they are trades done by gunbot, but where I've restarted gunbot it does not find some of the previous trades

I was talking about this

I just made a deposit from a different address, is this a problem?

Offline danialt

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #9 on: April 29, 2017, 08:10:08 PM »
ah ok, I meant the orignal post about
Error: BoughtPrice not set!!!

Offline Gunthar

  • Administrator
  • *****
  • Posts: 287
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #10 on: April 29, 2017, 09:12:33 PM »
ah ok, I meant the orignal post about
Error: BoughtPrice not set!!!

THere has been a patch fixing that: install 610 patch, it includes all patches + complete bot

Offline danialt

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #11 on: April 29, 2017, 10:28:56 PM »
ah ok, becuase the #601 patch download said windows only I ignored it.
So have downloaded it and now running through
is it correct tthat it reads (for linux)

[ ----------------    2017/04/29 22:27:50       Gunbot v2.0.4 Beta cycle#3 ------------------------ ]

Offline AlfonseX

  • Contributor
  • **
  • Posts: 101
  • Trop de chefs, pas assez d'indiens !
    • View Profile
Re: need help fixing error with GUNBOT 3.1. maybe bug?
« Reply #12 on: May 01, 2017, 02:40:23 PM »
I encounter the same issue with v3.1b, on Linux. When I restart gunbot (kill him and then restart) I have this message on some pairs:

Code: [Select]
Error: BoughtPrice not set!!!
Note that this pairs have been buy by gunbot.
I see the patch #601, but it's only for Windows. What I'm supposed to do?
Now, I let gunbot do what it wants, perhaps it will be solved with time (# cycles)?
If you think I helped you, give me a drink:
in btc: 12aeQSpytxoehCEptQE8tUJVVSAS42LvXo
in eth: 0x02a611f0c15bccdb6fa8e5e4b0692ff6d77852bd