Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unitradeapi-0.115.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

unitradeapi-0.115-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file unitradeapi-0.115.tar.gz.

File metadata

  • Download URL: unitradeapi-0.115.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for unitradeapi-0.115.tar.gz
Algorithm Hash digest
SHA256 049cf123c4746fe2e92f84dee58b9186774f64e68f862a37db89102d34e52acf
MD5 fad3490cf89474ff9d8d70dad1906eda
BLAKE2b-256 19b5b6844792ee73b899b12271c87938c658ab8474836ca7f3abfd1966054b8e

See more details on using hashes here.

File details

Details for the file unitradeapi-0.115-py3-none-any.whl.

File metadata

  • Download URL: unitradeapi-0.115-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for unitradeapi-0.115-py3-none-any.whl
Algorithm Hash digest
SHA256 22ee0a963c862b4e43d0a393231dc9208e54b0042a5fe721e7d33a7dc3cce506
MD5 736546db0bbcfd8b1300bc68c423948c
BLAKE2b-256 14299c2c9d7e0088e7956b1a6e8e75fa70f2d2b62c3a7112c1919424eed1f2df

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