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.1

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.1
File Size Uploaded Provenance Actions
stakeapi-0.2.1.tar.gz 63.1 kB With provenance Details for stakeapi-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 112.8 kB

Release files / stakeapi-0.2.1.tar.gz

Download URL stakeapi-0.2.1.tar.gz
Size 63.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ff76d58bd47b8b60eec70c6b819e2672950bbdb3a2a49422f880e9250a4990e8
BLAKE2b-256 checksum
How to use checksums
7b07fdca35d41a12a4064c0b391767b10f778f42b2d6213cd59df5546f904893
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.1-py3-none-any.whl

Download URL stakeapi-0.2.1-py3-none-any.whl
Size 49.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5450e638b0d0df1417d50720638888616244791f9acb5f6e54bb4f5e32e26c25
BLAKE2b-256 checksum
How to use checksums
e343b12466e3d5b4c5548c33058fad57c91a1d82204ce8b3481a6b17820e8b4b
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.1

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.1.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