Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/margostino/stockball
MVP: Trading System for football player in Premier
https://github.com/margostino/stockball
Last synced: 2 days ago
JSON representation
MVP: Trading System for football player in Premier
- Host: GitHub
- URL: https://github.com/margostino/stockball
- Owner: margostino
- License: apache-2.0
- Created: 2020-12-17T18:03:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-12T16:51:23.000Z (almost 2 years ago)
- Last Synced: 2024-11-10T09:13:51.297Z (2 months ago)
- Language: Python
- Size: 19 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StockBall ![](./documentation/images/stock-logo.png)
⚠️ A new verison of this repo is called [Anfield](https://github.com/margostino/anfield)
Every football player in Premier League in a trading system. 😃 ⚽ 🏴
This is a lab experiment to be able to process real-time data from every match in Premier League and score every player performance given certain pre-defined rules.
For the sake of funny the code was written quickly without thousands validation.This project also includes a docker environment with InfluxDB and Grafana to allow visualize the data point and play around with some queries.
## Local Development
### How to run Docker dependencies
- `make docker.run.dependencies`: InfluxDB + Grafana### How to load data source (fixture + match events)
- `make load.data SOURCE-PATH=/output SOURCE-URL=https://some-source/premier-league FIXTURE-PATH=/the/path/for/fixture/source/file`### Visualization
- You can play around testing some queries. In [`/docker/grafana/dashboard`](./docker/grafana/dashboards) is included a demo (and preliminary) example.
Go to [`http://localhost:3000`](http://localhost:3000) (admin/admin)![Player Performance](./documentation/images/performance.png)
###### Performance of multiple players in Game Week 8 (Manchester City VS Liverpool) on 2020-11-08.
![H2H Performance](./documentation/images/performance-h2h.png)
###### Salah performance by minute in Game Week 8 (Manchester City VS Liverpool) on 2020-11-08.
![H2H Performance](./documentation/images/h2h.png)