Closed jackisdesigning closed 2 years ago
Thanks for the amazing package Oliver. Please let me know if I missed anything when doing trades streaming. I tested on the exactly the same code but with binance.com-futures-testnet
and the trades are successfully streamed. It seems that the issue is coin-margin trading specific.
it need a couple of days to test it out.
did you try with other setups? other channel and/or other markets?
{"id":1,"result":null}
indicates a success... endpoints are connected and they accepted the subscription...
I tried trade
or aggTrade
for a wide range of tickers, but didn't get any output.
I tried a different channel using
bookticker_all_stream_id = binance_websocket_api_manager.create_stream(["arr"], ["!bookTicker"])
and got the streaming data as expected.
seems the issue is specific for the trade
and aggTrade
channels.
ahh I might get the ticker names wrong ... let me check
OK problem solved. For future reference to avoid such low-level mistakes please check out the ticker names to match exactly with what's available in the market. In this case, I should use BTCUSD_PERP
. Thanks for the help Oliver. Happy trading!
great! thanks for reporting the reason! best regards!
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Select one:
Environment
What kind of internet connection do you have?
Cable, with 177Mbps download, 5 Mbps upload.
Average system load (CPU)
4 Core i-7 Intel
Hardware specification
Operating System? (include version)
Options
Which endpoint do you connect?
binance.com-coin-futures
Python Version Requirement
Exact Python Version?
Tested on 3.9.6 and 3.8.11, both does not work.
Pip Version?
pip 21.0.1
Dependencies
Run
pip list > pip_list.txt
and upload the file. Package Versionaniso8601 9.0.1 appdirs 1.4.4 argcomplete 1.12.3 certifi 2021.5.30 charset-normalizer 2.0.4 cheroot 8.5.2 click 8.0.1 colorama 0.4.4 distlib 0.3.1 Flask 2.0.1 Flask-RESTful 0.3.9 idna 3.2 itsdangerous 2.0.1 jaraco.functools 3.3.0 Jinja2 3.0.1 MarkupSafe 2.0.1 more-itertools 8.8.0 numpy 1.21.2 packaging 21.0 pandas 1.3.2 pathlib 1.0.1 pip 21.0.1 pipx 0.16.3 psutil 5.8.0 python-dateutil 2.8.2 pytz 2021.1 requests 2.26.0 setuptools 52.0.0.post20210125 six 1.16.0 ujson 4.1.0 unicorn-binance-websocket-api 1.32.0 unicorn-fy 0.11.0 urllib3 1.26.6 userpath 1.6.0 virtualenv 20.4.2 websocket-client 1.2.1 websockets 9.1 Werkzeug 2.0.1 wheel 0.37.0
UNICORN Binance WebSocket API Version?
Latest up to now.
Description of your issue
Code Used
Issue is that the terminal only output
without outputting any trades. Log file