An older version of my arbitrage detector prior to a Spring Boot migration. If you want to find the newer and more up-to-date version, go here!
This version only searches for arbitrage opportunities from NBA games. As stated, if you want to use a more updated version that can aggregate data from a variety of leagues, go to my newer repo.
- Language: Java
- Build Tool: Gradle
- HTTP Client: OkHttp3
- JSON Parsing: Gson
- Data Source: SportsGameOdds API
- Java Development Kit (JDK): Version 8 or higher.
- Gradle: Ensure Gradle is installed (or use the included Gradle wrapper if available).
- API Key: You must have a valid API Key from the (SportsGameOdds)[https://sportsgameodds.com] service.
-
Clone the repository
git clone [https://github.com/crisflorentino/arbitrage-engine.git](https://github.com/crisflorentino/arbitrage-engine.git) cd arbitrage-engine -
Configure Environment Variables This application requires your API key to be set as an environment variable.
- Mac/Linux:
export API_KEY="your_actual_api_key_here"
- Windows (Command Prompt):
set API_KEY="your_actual_api_key_here"
- IDE (IntelliJ/Eclipse):
Go to your Run Configurations -> Environment Variables and add
API_KEY.
- Mac/Linux:
Since this project is Gradle-based, you can run the application directly from the terminal:
# Linux/Mac
./gradlew run
# Windows
gradlew.bat run