Skip to main content

Unified Crypto Exchange API

Project description

Unified Crypto Exchange API

unicex - библиотека для работы с криптовалютными биржами, реализующая унифицированный интерфейс для работы с различными криптовалютными биржами.

✅ Статус реализации:

Sync:

Exchange Client UniClient Adapter WebsocketManager UniWebsocketManager UserWebsocket
Binance [x] [x] [x] [x] [x] [x]
Bybit [ ] [ ] [ ] [ ] [ ] [ ]
Bitget [ ] [ ] [ ] [ ] [ ] [ ]
Okx [ ] [ ] [ ] [ ] [ ] [ ]
Mexc [ ] [ ] [ ] [ ] [ ] [ ]
Gate [ ] [ ] [ ] [ ] [ ] [ ]

Async:

Exchange Client UniClient Adapter WebsocketManager UniWebsocketManager UserWebsocket
Binance [x] [x] [x] [x] [x] [x]
Bybit [ ] [ ] [ ] [ ] [ ] [ ]
Bitget [ ] [ ] [ ] [ ] [ ] [ ]
Okx [ ] [ ] [ ] [ ] [ ] [ ]
Mexc [ ] [ ] [ ] [ ] [ ] [ ]
Gate [ ] [ ] [ ] [ ] [ ] [ ]

Блок для разработчика:

📋 Todo

  • Добавить веса и рейт лимиты в документацию клиентов
  • Пересмотреть вопрос: должен ли быть адаптер интерфейсом?
  • Прокидывать ошибку дальше: 2025-09-24 13:08:06.552 | ERROR | unicex._base.sync.websocket:_on_error:212 - Websocket error: Message queue is overflow
  • Доделать BitgetClient
  • Проверить типы BitgetClient
2025-09-24 13:14:03.812 | ERROR    | unicex._base.sync.websocket:_on_error:212 - Websocket error: Message queue is overflow
2025-09-24 13:14:03.812 | INFO     | unicex._base.sync.websocket:stop:121 - Stopping websocket
2025-09-24 13:14:04.291 | ERROR    | unicex._base.sync.websocket:stop:144 - Error stopping websocket thread: cannot join current thread
2025-09-24 13:14:09.294 | INFO     | unicex._base.sync.websocket:start:87 - Starting websocket
2025-09-24 13:14:09.295 | ERROR    | unicex._base.sync.websocket:_on_error:212 - Websocket error: 'NoneType' object has no attribute 'pending'
2025-09-24 13:14:09.296 | INFO     | unicex._base.sync.websocket:stop:121 - Stopping websocket
2025-09-24 13:14:10.544 | INFO     | unicex._base.sync.websocket:_on_open:187 - Websocket opened
2025-09-24 13:14:10.544 | ERROR    | unicex._base.sync.websocket:_on_error:212 - Websocket error: 'NoneType' object has no attribute 'sock'
2025-09-24 13:14:10.544 | INFO     | unicex._base.sync.websocket:stop:121 - Stopping websocket
2025-09-24 13:14:10.545 | ERROR    | unicex._base.sync.websocket:stop:144 - Error stopping websocket thread: cannot join current thread

📋 Todo 24 september

  • Написать 1-2 examples
  • Написать октрытый интерес на бинанс uni

📋 Todo 26 september

  • Убрали Literal's, добавили str в сигнатуры методов
  • Привести в порядок обработку ответа после запроса
  • Добавить генерацию ссылок в extra
  • Пересмотреть политику Literal в types
  • Потестить bitget
  • Может быть uni socket manager будет принимать тип рынка?
  • AdapterError можно сделать красивее и удобнее
  • Добавить дефолтный overload для uniclient uniwebsoccketmanager
  • Добавить ссылку на доку во все вебсокет менеджер эндпоинты
  • Добавить overload ко всем методам где None,None
  • Определить в каком порядке возвращать значения из адаптера (это касается всех методов)

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

unicex-0.1.18.tar.gz (62.5 kB view details)

Uploaded Source

Built Distribution

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

unicex-0.1.18-py3-none-any.whl (87.1 kB view details)

Uploaded Python 3

File details

Details for the file unicex-0.1.18.tar.gz.

File metadata

  • Download URL: unicex-0.1.18.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for unicex-0.1.18.tar.gz
Algorithm Hash digest
SHA256 c3f6dc17edd628612af12bc056e25292e6ba176b2aa117af36860c110f242bd4
MD5 f4a7481359934fd7c0404ba0bef47dc6
BLAKE2b-256 ff144e5f39476100aa85bc43173b527d5d10aa7af6e49874ee4431ce1fdb9a41

See more details on using hashes here.

File details

Details for the file unicex-0.1.18-py3-none-any.whl.

File metadata

  • Download URL: unicex-0.1.18-py3-none-any.whl
  • Upload date:
  • Size: 87.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for unicex-0.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 a1d79c8f6f86c5e2729a11461078f64b142ac58624a6480f2b4628cbd9fd0b96
MD5 8aa8e4e9d048dc7f49aa9953cafc6dc3
BLAKE2b-256 246688beea1e517888942a91f47b2a0f1e31c7bf0df85b6133b2f29a4ed40169

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