Skip to main content

A Package to communicate with the Tabdeal platform

Project description

Package

PyPI Status Python Version Poetry Release to PyPI status PyPI - Implementation PyPI - Wheel Pydantic

Quality Assurance

SonarQube Quality Gate SonarQube Reliability Rating SonarQube Maintainability Rating SonarQube Technical Debt SonarQube Bugs SonarQube Code Smells

Stats

Contributors Stars GitHub Issues GitHub Pull Requests SonarQube Lines of Code Repository Size

Tests

Nox CodSpeed pre-commit.ci status PyPI - Types Coverage status OpenSSF Scorecard

Security

Analyzed with Synk SonarQube Security Rating SonarQube Vulnerabilities Open Source Security Foundation Best Practices Badge

Linters

Ruff pre-commit MegaLinter status Checked with MyPy Linting with Pylint

Activity

Maintenance - intended GitHub commit activity Total Downloads

Misc

Contributor Covenant Digital Object Identifier Skeleton

Documentation

Documentation Status

License

License

🧭 Project overview

Unofficial Tabdeal API is a modern, fully asynchronous Python wrapper for the Tabdeal cryptocurrency trading platform. Built from the ground up to replace the outdated and limited official package, this library leverages Tabdeal’s new backend API to offer safer and developer-friendly access to all available features.

This package supports both public and private endpoints ( such as placing orders, fetching balances, and managing trades ) and is designed with clarity, security, and performance in mind, therefore, ideal for developers and algo traders who need reliable, complete, and secure access to Tabdeal’s trading features.

✅ Key features

  • 🚀 Async-first: Designed to work efficiently in modern Python async environments.

  • 🛡️ Safer interface: Raises clear, informative exceptions instead of vague errors.

  • 🔧 Complete coverage: Aims to support all endpoints exposed by the new Tabdeal API.

  • 🧪 Fully typed: Clean type hints across the codebase for better IDE support and readability.

  • ✔️ Unit tested: Each function is tested to ensure reliability and correct behavior.

  • 🧹 Linted and secure: Codebase follows modern Python best practices with multiple linters and security checks.

🛠️ Technical overview

This package uses the website backend to communicate with the Tabdeal platform (https://api-web.tabdeal.org) rather than the original API at (https://api1.tabdeal.org/api/v1).

This enables more stable and reliable access to Tabdeal’s features, as the new backend is designed to be more robust and feature-rich.

There are also exclusive features that aren’t available in the original API, such as setting stop loss/take profit points and 60x margin leverage.

🧰 Tech stack

🏁 Getting started

📋 Prerequisites

You need Authorization key and user-hash to use this package.

To obtain these credentials, follow these steps:

  1. On a computer, open your internet browser and log-in to Tabdeal website

  2. Navigate to settings page

  3. Press F12 to open Developer tools

  4. Navigate to Network panel

  5. Refresh the website page and the network section should populate with many entries

  6. Find the entry with wallet/ name

  7. Select it and in Headers section, under Request Headers, you should find them

📦 Installation

You can install unofficial tabdeal api via pip from PyPI, requirements will be met automatically:

pip install unofficial-tabdeal-api

⚙️ Usage

  1. Import TabdealClient from the package.

  2. Initialize the TabdealClient with your Authorization key and user-hash information

  3. Run your desired commands

# Import TabdealClient
from unofficial_tabdeal_api import TabdealClient

async def main():

    # Initialize a TabdealClient object
    my_client: TabdealClient = TabdealClient(USER_HASH, USER_AUTHORIZATION_KEY)

    # Run your desired commands, remember to `await` the methods as all of them (except a few) are asynchronous
    bomeusdt_asset_id = await my_client.get_margin_asset_id("BOMEUSDT")

Learn more in the Documentation.

🐛 Issues

If you encounter any problems, please file an issue along with a detailed description.

⚖️ License

Distributed under the terms of the MIT license, unofficial tabdeal api is free and open source software.

🤝 Contributing

Any contributions to this project are highly valued and appreciated. For detailed guidelines on how to contribute, please refer to the Contributor Guide.

🌟 Credits

This project was created with the help of @cjolowicz’s Hypermodern Python Cookiecutter template and @fpgmaas’s Cookiecutter Poetry template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unofficial_tabdeal_api-0.3.2.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unofficial_tabdeal_api-0.3.2-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file unofficial_tabdeal_api-0.3.2.tar.gz.

File metadata

  • Download URL: unofficial_tabdeal_api-0.3.2.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for unofficial_tabdeal_api-0.3.2.tar.gz
Algorithm Hash digest
SHA256 235a5570b39f2f347f43c0596cabc9a93070c88d405998d3c2e78492f10a0fa3
MD5 87a5731dcf01934f4ca6a5fb277ec6a0
BLAKE2b-256 d17d26ac0fdf1dcdebbaaaa96971076e06b446e7b56fd496fc0d636b704d1086

See more details on using hashes here.

Provenance

The following attestation bundles were made for unofficial_tabdeal_api-0.3.2.tar.gz:

Publisher: release-packge.yml on MohsenHNSJ/unofficial_tabdeal_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file unofficial_tabdeal_api-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for unofficial_tabdeal_api-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3bd71bdf39fe02e9a9a883c347f409e24d9dba358c5b4b05eb7bbe1690e4abbf
MD5 4aecbd7d1ed6206a9082f5d95b2761bf
BLAKE2b-256 849a9a91744c66a58936563fdf54866c657077f6e4fd9b2bfb3b9fb435d1bbdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for unofficial_tabdeal_api-0.3.2-py3-none-any.whl:

Publisher: release-packge.yml on MohsenHNSJ/unofficial_tabdeal_api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page