This is a personal project that I am currently working on that I embarked on for a mixture of fun, challenge and development of my skills which aims to be able to automate trading strategies on a sports exchange such as Smarkets.
How it currently works is that it pulls the odds relevant to the next event of the day directly from the relevant event webpage on Smarkets. This is achieved by making use of the Laravel Dusk and Horizon packages, and Selenium. This allows me to get a real-time time feed of the event data with minimal delay.
This data is then passed to Laravel’s event broadcasting feature and is received by my frontend.
Now that it can receive a real-time feed of the upcoming event data, my next steps are to implement the functionality to be able to partake in trades based on certain parameters and conditions.
More generic information about the event such as the course name and start time is fetched via the Smarkets RESTful API in the form of JSON.
All historical data relating to past events that has been fetched is stored in a MySQL database so that it can be used for future analytics. The project also makes use of some custom artisan commands which is Laravel’s included command-line interface.
Frameworks & Libraries
- Laravel (PHP)
- Bootstrap (CSS)
- Laravel Dusk
- Laravel Horizon
- This is very much a work in progress and as such is subject to many, many changes!