Skip to content
Exchange Bot source code.
PHP Vue HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bootstrap
config
database
public
resources
routes
storage
tests
.editorconfig
.env.example
.gitattributes
.gitignore
README.md
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.dusk.xml
phpunit.xml
server.php
webpack.mix.js
yarn.lock

README.md

Exchange Bot

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.

Software

Frameworks & Libraries

  • Laravel (PHP)
  • jQuery (JavaScript)
  • VueJS (JavaScript)
  • Bootstrap (CSS)

Other

  • MySQL
  • Selinium
  • Laravel Dusk
  • Laravel Horizon
  • Pusher

To-do

  • This is very much a work in progress and as such is subject to many, many changes!
You can’t perform that action at this time.