kdmukai / selective_dca_bot

MIT License
48 stars 9 forks source link

Error in timestamp #1

Open altcnews opened 5 years ago

altcnews commented 5 years ago

Hi,

I got this error when running:

File "/home/ubuntu/bindca/src/selective_dca_bot/exchanges/abstract_exchange.py", line 65, in calculate_latest_metrics self.ingest_latest_candles(market, interval, last_candle.timestamp, num_candles) AttributeError: 'NoneType' object has no attribute 'timestamp'

could you please help? thanks & regards.

kdmukai commented 5 years ago

Ah, my bad. Just committed a fix. Give that a try and let me know how it goes!

altcnews commented 5 years ago

Hi dev, thanks for the update.

Anyway, how to alter the command to run? For the testing, i'm using 0.015 at base_amount and only ATOM as my portfolio with BTC as base_pair.

And this is the result

~/dca/src$ ./run.sh


thanks & regards.

kdmukai commented 5 years ago

Sorry, I haven't run it from a brand new state in a while so I ended up introducing some new bugs along the way. Just committed a new update that should fix this. Grab a new copy of the *.py files and give it a try.

altcnews commented 5 years ago

That's great.

How do you add the base_amount and base_pair to get this running? It might be my mistake to input the wrong parameter on those.

I got this on the latest update:


candidate: XLMBTC | 0 entries Traceback (most recent call last): File "main.py", line 407, in lottery_weights.append(float(candidate['entries'] / total_entries)) decimal.InvalidOperation: [<class 'decimal.DivisionUndefined'>]

thanks & regards.

thorjeus commented 5 years ago

Hi. How do you start with the bot? I got decimal error:

prada:src thorjeus$ python3 main.py -e binance -c config.conf -p portfolio.conf -u -r buy_amount= "0.05" base_pair= "BTC"


thank you.

thorjeus commented 5 years ago

Hi, I got this error when trying the latest code

thanks.