No project description provided
Project description
cex_services
This package is designed for interacting with many crypto centralized exchanges. Currently only support public API endpoints in Version 1.0.x
. Will add private API endpoints in version 2.0.x
.
Getting started
use pip install cex-services
to install the package.
Usage
After installing the package, you can use the following code start the service. All the codes is written in async mode.
from cex_services.binance import Binance
import asyncio
async def main():
binance = await Binance.create()
# get exchange info
print(await binance.get_exchange_info())
# get all tickers
print(await binance.get_tickers())
if __name__ == "__main__":
asyncio.run(main())
Supported Exchanges
Exchange | Version | Public API | Private API |
---|---|---|---|
Binance | 1.0.1 | Yes | No |
OKX | 1.0.1 | Yes | No |
Bybit | 1.0.1 | Yes | No |
Gate.io | 1.0.1 | Yes | No |
Kucoin | 1.0.1 | Yes | No |
Supported API endpoints
Endpoint | Exchanges |
---|---|
get_exchange_info |
Binance, OKX, Bybit, Gate.io, Kucoin |
get_tickers |
Binance, OKX |
get_klines |
Binance, OKX |
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
cex_services-1.0.3.tar.gz
(12.0 kB
view hashes)
Built Distribution
Close
Hashes for cex_services-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 373ffffc9261dd8023d4847b713294a7eefee4e99ac652e56a7ee4c56e55db50 |
|
MD5 | 42cf5a5ba4a3de198cddc9a63a3fac79 |
|
BLAKE2b-256 | ba40525c88bfb0a3343fa2e9d8c27a75c45a94ed28677124c7ca34ca4a7155e3 |