main_acc = '.main.'
bal = conn.getbalance(main_acc, xcurr.conf) # here bal = -177
print bal, vol
if bal < vol:
for (k,v) in conn.listaccounts(xcurr.conf).iteritems():
if v == 0: continue
conn.move(k, main_acc, float(v))
print k,v
bal = conn.getbalance(main_acc, xcurr.conf)
print 'NEW bal:', bal # here bal = 0.2
#res = conn.sendmany( main_acc, sends, xcurr.conf )
res = conn.sendmany( main_acc,{ '....VMsWBDjDLL5': 0.00200 })
log(res)
ERROR:
u'Insufficient funds', u'code': -6
why?
How escape form check the account balance?