|
May 31, 2015, 02:31:51 PM |
|
Wrote a simple bot to automate a task for Bittrex trading. Here is the source code:
from Bittrex import Bittrex import time
trader = Bittrex(APIKEYS)
while True: while trader.get_balance('LDOGE')['result']['Available'] is None: time.sleep(15) print "1"
bal=trader.get_balance('LDOGE')['result']['Available'] print '2' trader.sell_limit('BTC-LDOGE', 0.00000004, bal) print '3'
whenever I run each command through the command line I get this output from trader.sell_limit (and .buy_limit just to see if that was the problem):
{u'message': u'ZERO_OR_NEGATIVE_NOT_ALLOWED', u'result': None, u'success': False}
Any ideas why? I have a high enough balance for the trade.
|