Skip to main content

PyBithumb2 is a Python wrapper for Bithumb's API v2, designed to provide an intuitive and efficient interface for developers. By leveraging Pydantic models and Python's typing library, PyBithumb2 ensures data validation and enhances the development experience.

Project description

PyBithumb2

PyPI - Version Python Versions Last Commit MIT License

PyBithumb2 is a Python wrapper for Bithumb's API v2, designed to provide an intuitive and efficient interface for developers. By leveraging Pydantic models and Python's typing library, PyBithumb2 ensures data validation and enhances the development experience.

Features

  • ✅ Clean and intuitive interface
  • 🔍 Pydantic models for response validation
  • 📦 Lightweight and dependency-minimal
  • 📊 Optional pandas DataFrame support for structured responses

Installation

pip install pybithumb2

Quick Start

from pybithumb2 import BithumbClient

# Get these from https://www.bithumb.com/react/api-support/management-api
client = BithumbClient(api_key="YOUR_API_KEY", secret_key="YOUR_SECRET_KEY")

# Get markets
markets = client.get_markets(isDetails=True)

for market in markets:
    print(f"{market.market}: {market.korean_name} ({market.english_name})")

Contributing

Pull requests and issues are welcome!

There are currently many features and improvements planned. Here are some ideas you can help with:

  • Support for Depositing and Withdrawing
  • Add more pandas DataFrame outputs for endpoints
  • Improve error handling and standardize exception formatting
  • Improve docstrings and API documentation
  • Add more unit tests for edge cases and error responses
  • Support WebSocket endpoints for live trading data
  • Create example notebooks or usage guides
  • Update the API for v2.1.5 (beta)

To contribute:

  1. Fork the repo
  2. Create a new branch: git checkout -b feature/my-feature
  3. Install dependencies and set up environment variables
  4. Commit and push your changes
  5. Open a pull request

Or, feel free to open an issue for bugs, feature requests, or questions.

Please make sure your code is type-safe and tested. Thanks for helping improve PyBithumb2!

Acknowledgements

PyBithumb2 was inspired by and built upon the foundations of several excellent Python SDKs:

🔗 Also check out my related project: bithumb-mcp

License

This project is licensed under the MIT License. See the LICENSE file for more details.

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

pybithumb2-1.0.0b0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

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

pybithumb2-1.0.0b0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file pybithumb2-1.0.0b0.tar.gz.

File metadata

  • Download URL: pybithumb2-1.0.0b0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pybithumb2-1.0.0b0.tar.gz
Algorithm Hash digest
SHA256 f740da32fcab0a7b5aed366019dcd267ee8b61e1d77bd985278d94ee79868350
MD5 cfdf1d3f3383b527cf704d969d3308b7
BLAKE2b-256 822e6bed61342c6d964b5d83ecf50e0791cd5d25e89e4ad8dbaf62ce29562419

See more details on using hashes here.

File details

Details for the file pybithumb2-1.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: pybithumb2-1.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pybithumb2-1.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 55f4746f8758eb25fe7cc57e7049104497e42bf9d41668ff1ba7955610537b8c
MD5 0744fae7d3bf40e4715ee2712feb76db
BLAKE2b-256 6745860e1c79ffed38500055015f91bc30aab69e6bb44cd049b38a01f2789147

See more details on using hashes here.

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