Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
[X] I have searched for other issues with the same problem or similar feature requests.
Select one:
[X] Bug
[ ] Feature Request
[ ] Technical Help
[ ] Other
Environment
[ ] Are you using the module on a VPS or other Cloud hosting?
[ ] If so, have you tried running the code on your local machine?
[ ] Are you using the module on a Raspberry Pi?
Operating System? (include version)
[X] macOS
[ ] Windows
[ ] Linux (include flavour)
Exact Python Version?
Python 3.8.5
Pip Version?
pip 20.1.1
Description of your issue
I found that unicorn_fy does not support the outboundAccountPosition socket update. The fix is pretty straightforward and I can create a PR or just use what I put in the comments here
Traceback (most recent call last):
File "/Users/bschwartz/.pyenv/versions/3.8.5/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/bschwartz/.pyenv/versions/3.8.5/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "./project/exchange_account.py", line 23, in print_stream_data_from_stream_buffer
stream_data = UnicornFy.binance_com_websocket(received_stream_data_json)
File "/.../venv/lib/python3.8/site-packages/unicorn_fy/unicorn_fy.py", line 125, in binance_com_websocket
return UnicornFy.binance_websocket(stream_data_json, exchange="binance.com", show_deprecated_warning=False)
File "/.../venv/lib/python3.8/site-packages/unicorn_fy/unicorn_fy.py", line 246, in binance_websocket
if stream_data['data']['e'] == 'aggTrade':
KeyError: 'data'
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Select one:
Environment
Operating System? (include version)
Exact Python Version?
Pip Version?
Description of your issue
I found that unicorn_fy does not support the
outboundAccountPosition
socket update. The fix is pretty straightforward and I can create a PR or just use what I put in the comments hereFix
In
unicorn_fy/unicorn_fy.py
On line 204 beneath the
executionReport
blockOn line 441 beneath the
outboundAccountInfo
block: