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

TypeError: '>' not supported between instances of 'NoneType' and 'float' binance requires to release all resources with an explicit call to the .close() coroutine. #16

Open
guntoken opened this issue Mar 24, 2024 · 1 comment

Comments

@guntoken
Copy link

here's my error:"Traceback (most recent call last):
File "/Users/passivbot_binance_isolated_margin_legacy/passivbot_isolated_margin.py", line 1532, in
asyncio.run(main())
File "/Users/.pyenv/versions/3.10.12/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Users/.pyenv/versions/3.10.12/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/Users/passivbot_binance_isolated_margin_legacy/passivbot_isolated_margin.py", line 1523, in main
bot = await create_bot(settings)
File "/Users/passivbot_binance_isolated_margin_legacy/passivbot_isolated_margin.py", line 51, in create_bot
await bot.init()
File "/Users/passivbot_binance_isolated_margin_legacy/passivbot_isolated_margin.py", line 144, in init
self.last_price = {s
: tickers[s
]['last'] for s_ in tickers if tickers[s_]['last'] > 0.0}
File "/Users/passivbot_binance_isolated_margin_legacy/passivbot_isolated_margin.py", line 144, in
self.last_price = {s_: tickers[s_]['last'] for s_ in tickers if tickers[s_]['last'] > 0.0}
TypeError: '>' not supported between instances of 'NoneType' and 'float'
binance requires to release all resources with an explicit call to the .close() coroutine. If you are using the exchange instance with async coroutines, add await exchange.close() to your code into a place when you're done with the exchange and don't need the exchange instance anymore (at the end of your async coroutine).
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x117e57ac0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x117efe200>, 429629.236401458)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x122143820>, 429629.455532416)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x117efd900>, 429630.147231708)]']
connector: <aiohttp.connector.TCPConnector object at 0x117e57a90>"

@adrian96b
Copy link

i've been dealing with the exact same issue, please help

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