Skip to content

bryand1/binance-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binance Python Web Sockets

Capture Binance websocket streams in Docker containers.

Objective

Create lightweight, asynchronous Python code to capture one or a combination of Binance web socket streams.

Getting Started

git clone https://github.com/bryand1/binance-websockets
cd binance-websockets
pip install -r requirements.txt

Set environment variables:

vi binance.env
export BINANCE_APIKEY=[YOUR KEY]
export BINANCE_SECRET=[YOUR KEY]

After setting environment variables, determine which database to use. Edit src/config.py, find the variable database.

Run the script:

./docker-run.sh [container-name] [endpoint]

Releases

No releases published

Packages

No packages published