Async Python client for WhiteBit API
- Private http V4 API
- Public WS API
- Public http v1
- Public http v2
- Public http v4
- Webhook support with examples
- Rate limiting
- Type hints
- Pydantic models
- Async/await support
pip install aiowhitebit
import asyncio
from aiowhitebit.clients.public import PublicV4Client
async def main():
client = PublicV4Client()
# Get market info
markets = await client.get_market_info()
print(f"Number of markets: {len(markets)}")
# Get market activity
activity = await client.get_market_activity()
print(f"BTC_USDT last price: {activity.get('BTC_USDT').last_price}")
asyncio.run(main())
For detailed documentation and examples, visit our GitHub repository.
# Clone the repository
git clone https://github.com/doubledare704/aiowhitebit.git
cd aiowhitebit
# Install development dependencies
pip install -r requirements-dev.txt
# Install pre-commit hooks
pre-commit install
# Run tests
pytest
MIT License - see LICENSE file for details