Thank you for considering contributing to the BingX Python SDK! This document provides guidelines for contributing to the project.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/bingx-python.git - Create a new branch:
git checkout -b feature/your-feature-name - Make your changes
- Run tests and linting
- Commit your changes
- Push to your fork
- Create a Pull Request
# Clone the repository
git clone https://github.com/tigusigalpa/bingx-python.git
cd bingx-python
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements-dev.txt
pip install -e .This project follows PEP 8 style guidelines with some modifications:
- Line length: 100 characters
- Use type hints where possible
- Use docstrings for all public methods and classes
- Format code with Black:
black bingx/ - Check with flake8:
flake8 bingx/
# Run all tests
pytest tests/
# Run with coverage
pytest tests/ --cov=bingx --cov-report=html
# Run specific test file
pytest tests/test_client.py# Run mypy type checker
mypy bingx --ignore-missing-imports- Use clear and descriptive commit messages
- Start with a verb in present tense (Add, Fix, Update, Remove, etc.)
- Reference issue numbers when applicable
Examples:
Add support for TWAP ordersFix authentication error handlingUpdate market service documentation
- Ensure all tests pass
- Update documentation if needed
- Add tests for new features
- Update CHANGELOG.md with your changes
- Ensure your code follows the style guidelines
- Create a Pull Request with a clear description
When reporting bugs, please include:
- Python version
- BingX Python SDK version
- Minimal code to reproduce the issue
- Expected behavior
- Actual behavior
- Error messages and stack traces
Feature requests are welcome! Please:
- Check if the feature already exists
- Provide a clear use case
- Explain why this feature would be useful
- Consider submitting a Pull Request
- Be respectful and inclusive
- Welcome newcomers
- Focus on constructive feedback
- Help others learn and grow
By contributing, you agree that your contributions will be licensed under the MIT License.