Skip to main content

Async Python client for WhiteBit API

Project description

aiowhitebit

Async Python client for WhiteBit API

Features

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


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.1.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiowhitebit-0.2.1-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file aiowhitebit-0.2.1.tar.gz.

File metadata

  • Download URL: aiowhitebit-0.2.1.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for aiowhitebit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4a2eebd07b95b403092f874b329b90c11d0edd482d157db21d22b70ef770098d
MD5 a3c603672e4439d69f78b3ea51ad49b3
BLAKE2b-256 979f0707fb6b64b4238182a869ced792c6710856c3713ad0801992f5a5b64c55

See more details on using hashes here.

File details

Details for the file aiowhitebit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: aiowhitebit-0.2.1-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.22

File hashes

Hashes for aiowhitebit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb657165fd9a3a230a68fd0e0b41828a38191d58f2053f7350270a1ad984c20b
MD5 3f18b973cafd4e453dc82e39a4e3a13a
BLAKE2b-256 9ef4b3d235e01442129f1cd125208883a9d457f1df3ab2249f3b5e3e8ebc0dc5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page