Async Python client for WhiteBit API
Project description
aiowhitebit
Async Python client for WhiteBit API
Features
- 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
Installation
pip install aiowhitebit
Quick Start
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())
Documentation
For detailed documentation and examples, visit our GitHub repository.
Development
# 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
License
MIT License - see LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiowhitebit-0.1.2.tar.gz
(34.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiowhitebit-0.1.2.tar.gz.
File metadata
- Download URL: aiowhitebit-0.1.2.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
900f59437c017f6fd5ba137bccbeb1a1b739dda67a06266ad7bf8c23eb88f003
|
|
| MD5 |
a020c2c0bf78817d702358508e7eaba9
|
|
| BLAKE2b-256 |
990762253a86576095280b5a803b1ff334eba62a5d87bf1f0c8ce63c6b57f1f7
|
File details
Details for the file aiowhitebit-0.1.2-py3-none-any.whl.
File metadata
- Download URL: aiowhitebit-0.1.2-py3-none-any.whl
- Upload date:
- Size: 42.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
138cc9df4e4c47003790ba06b3e027c6efe429faf06c5cd0773508fb2997f309
|
|
| MD5 |
a012c93481701a979c85eeb203697078
|
|
| BLAKE2b-256 |
9485a9d50ffa2f5d2425bd50c9f1dac783142f3158a163682b4cd33283216dc6
|