https://github.com/bryand1/binance-websockets
Binance Python Websockets
https://github.com/bryand1/binance-websockets
binance python3 websockets
Last synced: 6 months ago
JSON representation
Binance Python Websockets
- Host: GitHub
- URL: https://github.com/bryand1/binance-websockets
- Owner: bryand1
- Created: 2018-05-05T00:41:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-10T04:25:01.000Z (over 4 years ago)
- Last Synced: 2024-07-30T17:23:47.780Z (almost 2 years ago)
- Topics: binance, python3, websockets
- Language: Python
- Size: 33.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/bryand1/binance-websockets
cd binance-websockets
pip install -r requirements.txt
```
Set environment variables:
```bash
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:
```bash
./docker-run.sh [container-name] [endpoint]
```