Binance, Bybit API
Project description
Cryptocurrency API Clients for Binance and Bybit
This project provides a comprehensive library for interacting with the APIs of the Binance and Bybit cryptocurrency exchanges. It's designed for developers and analysts who need to access market data, trading information, and statistical insights in real-time.
Features
- Versatile Market Data Access: Retrieve real-time market data including exchange information, order books, recent trades, and more.
- Support for Multiple Market Types: Compatible with different market types such as spot, derivatives, futures, and options.
- Advanced Trading Operations: Facilitates advanced trading operations like historical trades lookup, aggregated trades lists, and K-line (candlestick data) queries.
- Websocket Support: Integration with Binance and Bybit Websockets for real-time data streaming.
- Error Handling and Logging: Robust error handling and logging capabilities for reliable application development.
Installation
To install the library, use the following pip command:
pip install UniCryptTradeAPI
from UniCryptTradeAPI import SyncBinancePublic, SyncBybitPublic
# Initialize clients
binance_client = SyncBinancePublic(market_type='spot')
bybit_client = SyncBybitPublic(category='spot')
# Example usage
exchange_info = binance_client.get_exchange_information()
order_book = bybit_client.get_order_book(symbol='BTCUSD')
Main methods from Bybit
SyncBybitPublic:
- instrument
- symbols_in_trading
- tickers
SyncBybitPrivate:
- wallet-balance
- transaction-log
AsyncBybitPrivate:
- wallet-balance
- transaction-log
SyncBybitWebsocketPublic:
- base class
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
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 unitradeapi-0.112.tar.gz.
File metadata
- Download URL: unitradeapi-0.112.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92eeb78426d16140e164a2cc3ad1f35f0240a6c85dbdf4703856a2b9bc8e1acb
|
|
| MD5 |
69ac1e424403def18dae79989c756fc7
|
|
| BLAKE2b-256 |
7d71e46fdc1ffb0829892bca56d42352bff7f771357dff8468ef6e767d1c6213
|
File details
Details for the file unitradeapi-0.112-py3-none-any.whl.
File metadata
- Download URL: unitradeapi-0.112-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3dea356d90c3e38b80f82f4af1e32cd3daf58a79a5b034535c379b66ebda245
|
|
| MD5 |
81492285794a662bd07f2ff0bc62a4dd
|
|
| BLAKE2b-256 |
42e4cf9441acc9f93e9cf07f5711a97027063f037a818f14c146502bfabd1e03
|