Skip to main content

REST API and WebSocket asyncio wrapper with grpc powered multiplexer server for crypto exchanges (Binance, FTX, ).

Project description


Crypto exchanges API/WSS wrapper with grpc powered server

Binance, FTX

For SPOT markets


PyPI version DeepSource DeepSource sonarcloud


exchanges-wrapper vs binance.py

The main difference is the development of the project for trading with many exchanges, including DeFi platforms.

Next is adding a new module exchanges_wrapper/exch_srv.py as a multiplexer layer, providing simultaneous async interaction for many accounts and many trading pairs through one connection. It's powered by gRPC Remote Procedure Call framework.

Warning. Coverage of overridden binance.py packages is significant but not complete. Served methods describes into example/exch_client.py

Initial capabilities (inherited from binance.py)

  • Covers general endpoints (test connectivity and get exchange information's)
  • Covers market data endpoints
  • Covers Account endpoints (create and manage orders)
  • Covers user data stream (receive real time user updates)
  • Covers web socket streams (receive real time market updates)
  • Async support
  • Auto reconnect after exchanges API or network failure
  • Completely free and without limitations

Added Features

  • Multi exchanges support
  • Adaptive algorithm to ensure maximum performance and avoid exceeding the rates limits
  • Passthrough logging

FTX Implementation features

  • Binance REST API and WSS are accepted as basic, connection of FTX and other exchanges wrapped their API to Binance compatible
  • For FTX, some data cannot be obtained by directly calling one method, it is generated by a synthetic or calculation method
  • FTX have not any testing or "paper trading" features, therefore, application development and testing is possible only at real bidding. First, run applications on the Binance Spot Test Network.

Get started

Install

To install the library, you can just run the following command:

pip install exchanges-wrapper

Prepare exchange account

Startup

  • Specify api_key and api_secret in exchanges_wrapper/exch_srv_cfg.toml
  • Run exchanges_wrapper/exch_srv.py in terminal window
  • In example/ms_cfg.toml select desired exchange. Don't change exchange name.
  • Run example/exch_client.py in other terminal window

Documentations

  • For binance.py use original
  • Served methods and examples of their use are described at example/exch_client.py
  • For Protocol Buffers serializing structured data see proto/exchanges_wrapper/api.proto

Donate

BNB, BUSD, USDT (BEP20) 0x5b52c6ba862b11318616ee6cef64388618318b92

USDT (TRC20) TP1Y43dpY7rrRyTSLaSKDZmFirqvRcpopC

Powered by exchanges-wrapper

martin-binance

Free trading system for Binance and FTX SPOT markets. Adaptive customizable reverse grid strategy based on martingale.

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

exchanges-wrapper-1.0.post2.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

exchanges_wrapper-1.0.post2-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

Details for the file exchanges-wrapper-1.0.post2.tar.gz.

File metadata

File hashes

Hashes for exchanges-wrapper-1.0.post2.tar.gz
Algorithm Hash digest
SHA256 5c4d48195736abbd1875b0ee21dd0d6481f54a07edcaf04f126843e64ab11c82
MD5 7146119597154873c3ec617455c6473a
BLAKE2b-256 69d81dfb956027d973e7a694fe264b22a0015b6e13ff3e67e4325af35cb5e2f2

See more details on using hashes here.

File details

Details for the file exchanges_wrapper-1.0.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for exchanges_wrapper-1.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 94ab5e60e4c8cf504de9afae5efefe0637c9e664e398b4f82125a1f0cc80d098
MD5 51354147c8f372ffe1be51bd8c96338b
BLAKE2b-256 da4d723ef08d667a1e10da1fb0ee3b6ba8f699dd64501818343ae30a68564ea8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page