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.2.4.tar.gz
(42.0 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.2.4.tar.gz.
File metadata
- Download URL: aiowhitebit-0.2.4.tar.gz
- Upload date:
- Size: 42.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efb2ce781cb9fddf490ecb45834b31bffa9579f774baddb384a3a78ee2f896c0
|
|
| MD5 |
ca40ee042d12540cd2cc7017b51b45bb
|
|
| BLAKE2b-256 |
770905d60edd268b8e9b6fd2d1f18f434852bb8ebd3acea3a936348f6ae332b7
|
File details
Details for the file aiowhitebit-0.2.4-py3-none-any.whl.
File metadata
- Download URL: aiowhitebit-0.2.4-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51916d9676e23d151657215b0fbead3c22772a80f1f9e76b0d18d425551fce82
|
|
| MD5 |
bf3ee8f2f7448262115cd041b615101e
|
|
| BLAKE2b-256 |
f0dd0b4a3eb5d8ec4bb2b5ea7625b5bf7028434cae67e5a5da6a7fe152a5a1e5
|