Skip to content

kahngjoonkoh/pybithumb2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Bithumb API v2 wrapper for Python environments using Pydantic models.

Topics

Resources

License

Stars

Watchers

Forks

Languages