Python 3.7+ async library for crypto.com/exchange API using httpx and websockets
Project description
Python 3.7+ async library for crypto.com/exchange API using httpx and websockets
Documentation: https://cryptocom-exchange.rtfd.io
Exchange original API docs: https://exchange-docs.crypto.com
**WARNING: PLEASE use 0.10.3+ [prev versions have private websocket broken and memory leaks]
Description
pip install cryptocom-exchange
- provides all methods to access crypto.com/exchange API (except for websockets temporary)
- full test coverage on real exchange with real money
- simple async methods with custom retries and timeouts
Please do not use secret keys, they used only for test purposes
Changelog
- 0.10.4 - Updated pairs
- 0.10.3 - fixed websocket private endpoints not returning data
- 0.10.2 - fixed huge memory leak by
httpx
- [leaks memory] 0.10.1 - added read timeouts for websockets, fixed test with tickers
- [leaks memory] 0.10.0 - moved into httpx + websockets, added autoreconnect, simplified code, improved stability
- 0.9.5 - added timeout for websocket if no data received in 3 mins we trying to reconnect
- 0.9.4 - fixed spread func, fixed missing params
- 0.9.3 - added RPS limiter by @Irishery
- 0.9.2 - fixed event loop import level
- 0.9.1 - fixed Windows bug with asyncio event loop
- 0.9.0 - updated coins, refactored wallet transactions
- 0.8.1 - fixed coin name generation
- 0.8 - fixed tests with updated coins
- 0.7.12 - updated coins, added websocket timeouts
- 0.7.11 - fixed orders history if empty
- 0.7.10 - updated pairs precision
- 0.7.9 - fixed price and quantity rounding, updated pairs and coins
- 0.7.8 - changed keys, removed depth from orderbook (not working, always 150), updated pairs
- 0.7.7 - updated pairs by JOB, fixed timeout
- 0.7.6 - updated pairs
- 0.7.5 - fixed
order.remaining_quantity
rounding - 0.7.4 - fixed sync pairs for account
- 0.7.3 - fixed price of order if not filled, updated coins, added missing trades to
Order
- 0.7.2 - fixed
listen_orders
private account method, added test - 0.7.1 - fixed missing '.0' in order price and quantity (different in py3.7, py3.9)
- 0.7 - major changes,
Pair
->cro.pairs.CRO_USDT
moved to more complex structure so we can use round and server information about pairs.- If you have errors, just use
await account.sync_pairs()
orawait exchange.sync_pairs()
- Added rounding per pair, all floats will be with right precisions
- If you have errors, just use
- 0.6 - included changes from PR kudos to https://github.com/samueltayishere, fixed limit orders, fixed timeouts, fixed is_active order status
- 0.5.1 - added symbols YFI, BAND, fixed test with limit orders
- 0.5 - missing symbols MKR, UNI, possible refactoring for simple objects
- 0.4.5 - fixed missing CELR balances
- 0.4.4 - fixed missing QTUM, CELR coins
- 0.4.3 - fixed missing
fees_coin
Coin enum - 0.4.2 - fixed supported pairs OMG and MANA
- 0.4.1 - fixed
cached_property
for python 3.7 - 0.4.0 - added
OrderForceType
andOrderExecType
, refactoredOrder
responses, splited private and market methods, added missingPair
andCoin
, addedBalance
dataclass, public keys for tests passing - 0.3.4 - fixed balances listener, fixed pairs
- 0.3.3 - fixed orderbook depth
- 0.3.2 - added orderbook websocket method
- 0.3.1 - fixed missing DAI pair
- 0.3 - added websocket support for public endpoints and supports
sign=True
for private endpoints - 0.2.1 - fixed order_id in
get_order
func, still preparing for stable release - 0.2 - moved to new API v2, except for websockets
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
cryptocom-exchange-0.11.11.tar.gz
(19.9 kB
view hashes)
Built Distribution
Close
Hashes for cryptocom-exchange-0.11.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c591ad3dce0bd924d5ae8015e4ac90ca217219c403dd99846345edf81352293 |
|
MD5 | e1ab49149737e1e18af3eca9e3b60d27 |
|
BLAKE2b-256 | 5a4283e62cbb9f95ac6ea28b6793642d1618b23f30b6b8e1b778423856b4d979 |
Close
Hashes for cryptocom_exchange-0.11.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efbbb20b8489beda6304b4383b3499ca5d296a02581928a3dd899d7092cac7b8 |
|
MD5 | f145082cd7b8b3cdc706b766983e1459 |
|
BLAKE2b-256 | cdee15a31166330f9b6427cf749fb5e63a49eb7c2632c253342f10584075a08e |