Flash Betting is a web application to trade using the BetFair API. It uses the Streaming API to get live price updates.
Written in pure JS, the Front End is built in React and the backend in Node.js. It is integrated with Electron to run as a desktop application.
Most functionality is implemented, but the app is still in an unfinished state.
In order to connect to the Betfair API you will need an App Key, and a BetFair username/password.
Follow these instructions to get your app key, you can either use a delayed or live key. The Live Application Key costs a one time fee of £299 payable to BetFair.
For testing, you can request a delayed key from the BetFair Development team. With a delayed key, market updates are received approximately once per minute.
To configure the environment variables, create a .env
file in the root directory of the project. Use the provided example.env
file as a template to set up your own .env
file. The APP_KEY
variable should be set to your purchased app key from Betfair.
Example:
APP_KEY=your_app_key_here
Flash Betting requires Node.js version 14.x to 16.x. Ensure that your environment is using one of these supported versions before proceeding with installation.
$ npm install --legacy-peer-deps // Install the dependencies
$ npm run browser // Run the Front End and Local Back End concurrently
$ npm install --legacy-peer-deps // Install the dependencies
$ npm run electron-build // Build the .dmg or .exe with Electron Builder