right, the latest commit does this when the arbitrage program wants to trade
2013-04-16 03:14:44,024 [INFO] Buy @MtGoxEUR 0.000905 BTC and sell @BitcoinCentralEUR
Traceback (most recent call last):
File "arbitrage.py", line 214, in
main()
File "arbitrage.py", line 198, in main
arbitrer.loop()
File "arbitrage.py", line 172, in loop
self.tick()
File "arbitrage.py", line 166, in tick
observer.end_opportunity_finder()
File "E:\bitcoin-arbitrage-master\src\observers\specializedtraderbot.py", line 34, in end_opportunity_finder
self.execute_trade(*self.potential_trades[0][1:])
File "E:\bitcoin-arbitrage-master\src\observers\specializedtraderbot.py", line 94, in execute_trade
"weighted_buyprice=%f weighted_sellprice=%f" % (weighted_buyprice, weighted_sellprice))
File "E:\bitcoin-arbitrage-master\src\observers\emailer.py", line 17, in send_email
smtpObj = smtplib.SMTP(config.smtp_host)
File "c:\python33\lib\smtplib.py", line 238, in __init__
(code, msg) = self.connect(host, port)
File "c:\python33\lib\smtplib.py", line 317, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "c:\python33\lib\smtplib.py", line 288, in _get_socket
self.source_address)
File "c:\python33\lib\socket.py", line 417, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 11004] getaddrinfo failed
E:\bitcoin-arbitrage-master\src>python arbitrage.py -v
2013-04-16 03:16:21,532 [DEBUG] ticker: MtGoxEUR - {'bid': {'price': 71.11, 'amount': 5.7}, 'ask': {'price': 71.81099, 'amount': 0.01}}
2013-04-16 03:16:21,533 [DEBUG] ticker: BitcoinCentralEUR - {'bid': {'price': 75.0, 'amount': 85.91478223}, 'ask': {'price': 76.0, 'amount
Traceback (most recent call last):
File "arbitrage.py", line 214, in
main()
File "arbitrage.py", line 198, in main
arbitrer.loop()
File "arbitrage.py", line 172, in loop
self.tick()
File "arbitrage.py", line 166, in tick
observer.end_opportunity_finder()
File "E:\bitcoin-arbitrage-master\src\observers\traderbot.py", line 33, in end_opportunity_finder
self.execute_trade(*self.potential_trades[0][1:])
File "E:\bitcoin-arbitrage-master\src\observers\traderbot.py", line 86, in execute_trade
self.clients[kbid].sell(volume)
File "E:\bitcoin-arbitrage-master\src\private_markets\bitcoincentral.py", line 73, in sell
response = self.trade(amount, "sell", price)
File "E:\bitcoin-arbitrage-master\src\private_markets\bitcoincentral.py", line 66, in trade
response = self._send_request(self.trade_url, params)
File "E:\bitcoin-arbitrage-master\src\private_markets\bitcoincentral.py", line 53, in _send_request
response = urllib.request.urlopen(req)
File "c:\python33\lib\urllib\request.py", line 160, in urlopen
return opener.open(url, data, timeout)
File "c:\python33\lib\urllib\request.py", line 471, in open
req = meth(req)
File "c:\python33\lib\urllib\request.py", line 1183, in do_request_
raise TypeError(msg)
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
I'm stuck finding the error (help)
o.0