Examples using Benzinga's streaming websocket feeds. Documentation available at https://docs.benzinga.io/.
See https://docs.benzinga.io/benzinga/newsfeed-stream-v1.html for Newsfeed streaming documentation.
This is provided as an example only. It is not intended to be used as production code.
Requires Python 3+
Assumes Mac/Linux environment.
Using Poetry, clone repo, change to python-newsfeed
and run poetry install
.
export BZ_API_KEY='your api key'
python python-newsfeed/python_newsfeed/newsfeed.py