Changelog
All notable changes to StakeAPI are documented here.
π‘ Don't have a Stake.com account yet? Sign up here to get started and unlock all API features.
This project follows Semantic Versioning.
[Unreleased]
Added
- Public casino data:
get_casino_games()andget_game_details()now work (lobby groups and game slugs), plussearch_casino_games(),get_casino_collection(),get_game_payouts(),get_crash_history(),get_crash_game(),get_slide_history()andget_highroller_bets() - Public sports data:
get_sports_events()now works, plusget_sport_index(),get_sports(),get_trending_sports(),get_fixtures(),get_sport_fixtures(),get_tournament(),search_sports(),get_trending_matches(),get_top_picks()andget_top_multis() - Promotions and info:
get_challenges(),get_active_races()andget_currency_limits() Gamemodel: newslugandplayer_countfields- Live data over WebSocket:
StakeWebSocket(viaclient.websocket()) with streams for Crash, Slide, casino and sports bet feeds, live odds and scores, races, chat and session expiry, plussubscribe()for any subscription get_public_chats()lists public chat rooms- Account data:
get_account_status(),get_vip_info(),get_claimable_bonuses(),get_unclaimed_bonuses(),get_active_rollovers(),get_seed_pair(),get_sport_bet_history(),get_active_sport_bets(),get_deposits(),get_withdrawals(),get_tip_history(),get_game_statistics(),get_favourite_games(),get_recent_games(),get_race_positions(),get_notifications(),get_gambling_limits()andget_sessions() get_user_stats(name)looks up any playerβs public profile without logging in-
get_bet_history()takesoffsetand agamefilter - Betting (unvalidated):
dice_roll(),casino_bet()for any Stake Original,crash_bet(),crash_cashout(),slide_bet(),flip_bet(),flip_next(),flip_cashout(),zoo_bet(),place_sport_bet()andcashout_sport_bet(). They are off unless the client is created withallow_betting=True(BettingDisabledErrorotherwise), and all supportdry_run=True
Changed
place_bet()now explains which per-game method to use instead of saying betting is unmapped- βPlease log in.β errors now raise
PermissionDeniedErrorinstead of a plainGraphQLError
[0.1.0] β 2026-03-31
π Initial Release
The first public release of StakeAPI β the most comprehensive Python wrapper for the Stake.com API.
Added
- Core Client (
StakeAPI)- Async context manager support
- Automatic session and header management
- Configurable timeout and rate limiting
- GraphQL and REST API support
- Authentication (
AuthManager)- Access token authentication
- Session cookie support
- Token expiration tracking
- cURL command credential extraction
- Casino API
get_casino_games()β Browse all games with category filteringget_game_details()β Get detailed game information
- Sports API
get_sports_events()β Browse events with sport filtering- Live event detection
- User API
get_user_profile()β User profile informationget_user_balance()β Multi-currency balance (available + vault)
- Betting API
place_bet()β Place bets programmaticallyget_bet_history()β Retrieve bet history with pagination
- GraphQL Support
- Pre-built queries for common operations
- Custom query support with variables
- Cursor-based pagination
- Data Models (Pydantic)
Userβ User profile modelGameβ Casino game modelSportEventβ Sports event modelBetβ Bet modelTransactionβ Transaction modelStatisticsβ Aggregated statistics model
- Exception Hierarchy
StakeAPIErrorβ Base exceptionAuthenticationErrorβ Auth failuresRateLimitErrorβ Rate limitingValidationErrorβ Input validationNetworkErrorβ Connection issuesGameNotFoundErrorβ Missing gamesInsufficientFundsErrorβ Insufficient balance
- Utilities
- API key validation
- Safe decimal conversion
- Datetime parsing
- Currency formatting
- Win rate calculation
- Bet amount validation
- Game name sanitization
- Documentation
- Complete API reference
- Getting started guides
- Code examples
- GitHub Pages integration
Upcoming
Planned for v0.2.0
- WebSocket real-time data streaming
- Chat message support
- VIP level tracking
- Promotions and rakeback API
- Data export utilities
- CLI tool for common operations
Planned for v0.3.0
- Multi-account support
- Proxy rotation
- Database integration helpers
- Discord/Telegram bot templates
- Advanced analytics dashboard
Stay updated and be the first to try new features. Sign up on Stake.com and start building with StakeAPI today!
π¬ Join the StakeAPI Community on Discord
Get help, share your projects, discuss strategies, and stay up to date with the latest StakeAPI news.
Join Our Discord Server ββοΈ Built with ChipaEditor
ChipaEditor is the ultimate code editor built for speed, simplicity, and power. Try it free today.
Try ChipaEditor Free β