BlackBot icon indicating copy to clipboard operation
BlackBot copied to clipboard

Not starting issue, errors on canceling open orders

Open tofm2 opened this issue 6 years ago • 3 comments

tofm2 avatar Nov 05 '18 14:11 tofm2

Hello,

With a fresh install, here are the blackbot outputs on startup : python BlackBot.py sample-bot.cfg [Nov 05 2018 14:32:32 UTC] : Reading config file 'sample-bot.cfg' [Nov 05 2018 14:32:32 UTC] : -------------------------------------------------------------------------------- [Nov 05 2018 14:32:32 UTC] : Address : VALID ADDRESS [Nov 05 2018 14:32:32 UTC] : Amount Asset ID : WAVES [Nov 05 2018 14:32:32 UTC] : Price Asset ID : VALID ASSET CODE [Nov 05 2018 14:32:32 UTC] : -------------------------------------------------------------------------------- [Nov 05 2018 14:32:32 UTC] : [Nov 05 2018 14:32:32 UTC] : Cancelling open orders... Traceback (most recent call last): File "BlackBot.py", line 122, in BLACKBOT.cancelOpenOrders(PAIR) File "/home/cm/.local/lib/python2.7/site-packages/pywaves/address.py", line 858, in cancelOpenOrders status = order['status'] TypeError: string indices must be integers

Can someone give me some help ?

tofm2 avatar Nov 05 '18 14:11 tofm2

What does your config file look like?

PyWaves avatar Mar 25 '19 14:03 PyWaves

Had the same problem, you need to switch Asset ID and Price Asset ID in the config file, then it works.

iammortimer avatar Jun 16 '19 09:06 iammortimer