Migration Guide
π° New to Stake.com? Sign up with code
WY7953wQto claim your welcome bonus and support StakeAPIβs development β Create your Stake.com account
π¬ Need help? Join the Chipa Discord Β· β‘ Go no-code with ChipaEditor
How to upgrade between StakeAPI versions smoothly.
Versioning Policy
StakeAPI follows Semantic Versioning:
- Major (x.0.0) β Breaking changes
- Minor (0.x.0) β New features, backwards compatible
- Patch (0.0.x) β Bug fixes, backwards compatible
Upgrading StakeAPI
Using pip
# Upgrade to latest
pip install --upgrade stakeapi
# Upgrade to specific version
pip install stakeapi==0.2.0
# Check current version
python -c "import stakeapi; print(stakeapi.__version__)"Migration: Pre-release β v0.1.0
If you were using StakeAPI before the official v0.1.0 release:
Import Changes
# Old (if applicable)
from stake_api import Client
# New (v0.1.0+)
from stakeapi import StakeAPIClient Initialization
# Old
client = Client(api_key="your_key")
# New (v0.1.0+)
client = StakeAPI(access_token="your_token")Balance Method
# Old
balance = await client.get_balance()
# New (v0.1.0+) β returns structured dict
balance = await client.get_user_balance()
# Returns: {"available": {...}, "vault": {...}}Context Manager
# Old β manual cleanup
client = Client(api_key="key")
balance = await client.get_balance()
await client.close()
# New (v0.1.0+) β async context manager
async with StakeAPI(access_token="token") as client:
balance = await client.get_user_balance()
# Session closed automaticallyFuture Migration Notes
This section will be updated as new versions are released.
v0.1.0 β v0.2.0 (Planned)
Expected changes:
- WebSocket API additions (non-breaking)
- New methods for chat and VIP data (non-breaking)
- Possible deprecation of some REST endpoints
Deprecation Policy
- Deprecated features will show warnings for at least one minor version
- Deprecated features will be removed in the next major version
- Migration paths will always be documented here
Level Up Your StakeAPI Setup
- π° Create your Stake.com account β β Register with referral code
WY7953wQto unlock your welcome bonus, rakeback, and exclusive rewards. Using our link keeps StakeAPI free and actively maintained. - π¬ Join the Chipa Discord β β Get real-time support, share your bots and strategies, and connect with hundreds of other StakeAPI developers.
- β‘ Try ChipaEditor β β Build, backtest, and deploy betting & trading strategies with our AI-powered, no-code editor. The perfect companion to StakeAPI.