Skip to main content

StakeAPI

📈 Trading crypto too? ChipaX is our own perpetuals exchange — and it has a Python API. pip install chipax gives you perps on real Hyperliquid liquidity, plus a free $100,000 paper account that charges the same fees and enforces the same leverage caps as live trading. No deposit or KYC to practise. → chipax-python

Join our affiliate link: https://stake.com/?c=WY7953wQ

✨ Build with Chipa Editor — the AI-powered strategy editor for Traders. Try it free!

An unofficial Python API wrapper for stake.com - the online gambling platform.

⚠️ Disclaimer

This is an unofficial API wrapper and is not affiliated with, endorsed by, or connected to stake.com in any way. Use at your own risk and ensure compliance with all applicable laws and regulations in your jurisdiction.

Features

  • 🎰 Access to casino games data
  • 🏈 Sports betting information
  • 👤 User account management
  • 📊 Statistics and analytics
  • 🔐 Secure authentication handling
  • ⚡ Async support for high performance
  • 📡 Live data over WebSocket (Crash, bet feeds, live odds, chat)
  • 🌐 Log in through a real Chrome window, or reuse your own Chrome login (pip install "stakeapi[browser]")

Installation

pip install stakeapi

Quick Start

import asyncio
from stakeapi import StakeAPI

async def main():
    # Initialize with access token from stake.com
    async with StakeAPI(access_token="your_access_token") as client:
        # Get account balance
        balance = await client.get_user_balance()
        print(f"Available balance: {balance['available']}")
        print(f"Vault balance: {balance['vault']}")

asyncio.run(main())

Getting Your Access Token

  1. Log in to stake.com in your browser
  2. Open Developer Tools (F12)
  3. Go to the Network tab
  4. Make any action that triggers a request (like checking balance)
  5. Find a GraphQL request to /_api/graphql
  6. Right-click → Copy as cURL
  7. Extract the x-access-token from the cURL command

The access token will be in a header like:

-H "x-access-token: your_token_here"

Documentation

For detailed documentation, please visit chipadevteam.github.io/StakeAPI.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues, please file them in the issues section.

Metadata

Release files for stakeapi 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stakeapi 0.2.0
File Size Uploaded Provenance Actions
stakeapi-0.2.0.tar.gz 63.0 kB With provenance Details for stakeapi-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stakeapi 0.2.0
File Interpreter ABI Platform Actions
stakeapi-0.2.0-py3-none-any.whl Python 3 none any Details for stakeapi-0.2.0-py3-none-any.whl

Total release size: 112.6 kB

Release files / stakeapi-0.2.0.tar.gz

Download URL stakeapi-0.2.0.tar.gz
Size 63.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb53aa4fd6363b9c10001ddd4356061f7755161b9ec6e4bc30449f8a1b032c4
BLAKE2b-256 checksum
How to use checksums
3e0fda7c151957cb4d3bf1ed7aace41f9c33d39deb97db3da4c0a2e5accf58a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / stakeapi-0.2.0-py3-none-any.whl

Download URL stakeapi-0.2.0-py3-none-any.whl
Size 49.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75400c60b64db8bb444bf4bf7bd238ff872a3049d11a9b7349ad8a43de8f33d4
BLAKE2b-256 checksum
How to use checksums
1f9af7c6adb082fb52a6d8873f95fe5a2f7afa2e393fa328ebfdaae1f28b698b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for stakeapi 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stakeapi-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page