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.
- ✅ Clean and intuitive interface
- 🔍 Pydantic models for response validation
- 📦 Lightweight and dependency-minimal
- 📊 Optional pandas DataFrame support for structured responses
pip install pybithumb2
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})")
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:
- Fork the repo
- Create a new branch:
git checkout -b feature/my-feature
- Install dependencies and set up environment variables
- Commit and push your changes
- 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!
PyBithumb2 was inspired by and built upon the foundations of several excellent Python SDKs:
🔗 Also check out my related project: bithumb-mcp
This project is licensed under the MIT License. See the LICENSE file for more details.