Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 417: TypeError: float argument required, not NoneType #244

Open
isofish48 opened this issue May 13, 2018 · 1 comment
Open

line 417: TypeError: float argument required, not NoneType #244

isofish48 opened this issue May 13, 2018 · 1 comment

Comments

@isofish48
Copy link

An error occurred when executed with the following command. Can you solve this problem?

command:
python trader.py --symbol BCCBTC --quantity 0.01 --p rofit 1.3 --wait_time 1 --stop_loss 3

Error:
Get Ticker Exeption: HTTPSConnectionPool(host='www.binance.com', port=443): Max retries ex ceeded with url: /api/v1/ticker/24hr?symbol=BCCBTC (Caused by NewConnectionError('<urllib3 .connection.VerifiedHTTPSConnection object at 0x7f6985badc90>: Failed to establish a new c onnection: [Errno -3] Temporary failure in name resolution',))
Exception in thread Thread-142:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "./app/Trading.py", line 417, in action
self.logger.debug('price:%.8f buyprice:%.8f sellprice:%.8f bid:%.8f ask:%.8f spread:%. 2f Originalsellprice:%.8f' % (lastPrice, buyPrice, profitableSellingPrice, lastBid, lastA sk, spreadPerc, profitableSellingPrice-(lastBid *self.commision) ))
TypeError: float argument required, not NoneType

@Orbitalz-eth
Copy link

Im getting somewhat of the same issue as well. Did Binance change something in their API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants