An automated betting bot that interfaces with the SharpXch betting API to authenticate, collect match information, and place bets based on predefined strategies.
- API Authentication: Secure authentication with the SharpXch API
- Profile Retrieval: Fetch user account information and balance
- Sports Data: Retrieve sports and matches data
- Betting Strategies: Implement various betting strategies
- Automated Betting: Place bets automatically based on strategies
betting-bot/
│
├── config/ # Configuration files
│ ├── betting_config.py # Betting strategies configuration
│ └── logging_config.py # Logging configuration
│
├── data/ # Data storage
│
├── logs/ # Log files
│
├── src/ # Source code
│ ├── api/ # API client modules
│ │ └── sharpxch_client.py # SharpXch API client
│ │
│ ├── models/ # Data models
│ │ ├── api_models.py # API response models
│ │ └── profile_model.py # User profile models
│ │
│ ├── strategies/ # Betting strategies
│ │
│ └── utils/ # Utility functions
│ ├── config.py # Configuration utilities
│ ├── data_manager.py # Data management utilities
│ └── logger.py # Logging utilities
│
├── tests/ # Test suite
│ ├── api/ # API tests
│ └── integration/ # Integration tests
│
├── .env # Environment variables (from .env.example)
├── main.py # Main entry point
├── requirements.txt # Project dependencies
└── README.md # Project documentation
-
Clone the repository
git clone https://github.com/username/betting-bot.git cd betting-bot -
Create a virtual environment
python -m venv venv
-
Activate the virtual environment
- Windows:
venv\Scripts\activate
- Unix/MacOS:
source venv/bin/activate
- Windows:
-
Install dependencies
pip install -r requirements.txt
-
Configure environment variables
cp .env.example .env # Edit .env with your credentials
Run the betting bot
python main.pyRun the tests
pytestCode formatting
black .Run linter
flake8Sort imports
isort .MIT