Exchange Radar
Real-time cryptocurrency trades, filtered feeds, trade history and price alerts. Supports Binance, Coinbase, Kraken, KuCoin, OKX, Bybit, Bitstamp, MEXC and HTX.
Install
Requires Python 3.12+, RabbitMQ and Redis with JSON and Search support. Installing the package does not install these services.
python -m venv .venv
source .venv/bin/activate
python -m pip install exchange-radar
Run locally
This example monitors BTC/USDT on Binance. Start Redis on port 6379 and RabbitMQ on port 5672, accessible only from your machine.
Save the following as .env. Set your RabbitMQ credentials and generate
INTERNAL_API_TOKEN with python -c 'import secrets; print(secrets.token_urlsafe(32))'.
export DEBUG=false REDIS_OM_URL=redis://localhost:6379/0
export REDIS_EXPIRATION=90 REDIS_MAX_ROWS=256
export RABBITMQ_HOST=localhost RABBITMQ_PORT=5672 RABBITMQ_DEFAULT_VHOST=/
export RABBITMQ_DEFAULT_USER=radar RABBITMQ_DEFAULT_PASS='replace-me'
export RABBITMQ_EXCHANGE=radar
export RABBITMQ_CONNECTION_HEARTBEAT=60 RABBITMQ_BLOCKED_CONNECTION_TIMEOUT=30
export INTERNAL_API_TOKEN='replace-with-generated-token'
export TRADES_HOST_URL='http://127.0.0.1:9000/api/feed/{coin}'
export TRADES_WHALES_HOST_URL='http://127.0.0.1:9000/api/feed/{coin}/whales'
export TRADES_DOLPHINS_HOST_URL='http://127.0.0.1:9000/api/feed/{coin}/dolphins'
export TRADES_OCTOPUSES_HOST_URL='http://127.0.0.1:9000/api/feed/{coin}/octopuses'
export BINANCE=BTC BINANCE_COINS=BTCUSDT
export COINBASE= KRAKEN= KUCOIN= OKX= BYBIT= BITSTAMP= MEXC= HTX=
export COINBASE_COINS= KRAKEN_COINS= KUCOIN_COINS= OKX_COINS=
export BYBIT_COINS= BITSTAMP_COINS= MEXC_COINS= HTX_COINS=
Load the settings and create the RabbitMQ exchange and queues once. The broker user needs permission to configure, write and read these resources.
source .env
python - <<'PY'
import os
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(
host=os.environ['RABBITMQ_HOST'], port=int(os.environ['RABBITMQ_PORT']),
virtual_host=os.environ['RABBITMQ_DEFAULT_VHOST'],
credentials=pika.PlainCredentials(
os.environ['RABBITMQ_DEFAULT_USER'], os.environ['RABBITMQ_DEFAULT_PASS']),
))
channel = connection.channel()
exchange = os.environ['RABBITMQ_EXCHANGE']
channel.exchange_declare(exchange=exchange, exchange_type='topic', durable=True)
for suffix, key in [('', 'all'), ('-whales', 'whales'),
('-dolphins', 'dolphins'), ('-octopuses', 'octopuses')]:
queue = 'trades' + suffix
channel.queue_declare(queue=queue, durable=True)
channel.queue_bind(queue=queue, exchange=exchange, routing_key='trades.' + key)
connection.close()
PY
In four terminals, activate .venv and run source .env in each.
Then run one command per terminal, in this order:
# 1. Web interface
uvicorn exchange_radar.web.src.main:app --host 127.0.0.1 --port 9000
# 2. Deliver trades to the web interface
consumer
# 3. Price alerts and reference prices
scheduler
# 4. Collect trades
producer --exchange binance BTCUSDT
Open BTC trades. Add /whales, /dolphins or
/octopuses for filtered feeds. Stop each process with Ctrl+C.
Browser push notifications require additional configuration and are off by default. License: GPL-3.0-only.
Metadata
Release files for exchange-radar 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exchange_radar-2.0.0.tar.gz | 134.7 kB | Without provenance | Details for exchange_radar-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exchange_radar-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for exchange_radar-2.0.0-py3-none-any.whl |
Total release size: 330.5 kB
Release files / exchange_radar-2.0.0.tar.gz
| Download URL | exchange_radar-2.0.0.tar.gz |
|---|---|
| Size | 134.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca7e2d0f02fc4fb2470af47485ac25c6e3f24cda3c8ad4fb1a0bda7e57cb51aa
|
|
BLAKE2b-256 checksum How to use checksums |
70ce705358295acf26a9557684c4937cc2aa94dde508f297e54637dcdf498a2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.15.0 Darwin/27.2.0
|
Release files / exchange_radar-2.0.0-py3-none-any.whl
| Download URL | exchange_radar-2.0.0-py3-none-any.whl |
|---|---|
| Size | 195.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c203ae8434cee09e22f9418e4698489110d05cd27d78db5a2704372016c0948
|
|
BLAKE2b-256 checksum How to use checksums |
a20afc8e54e56b15223aa32b83887f5d5805ce120dcc7104741be26c9fd7863c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.15.0 Darwin/27.2.0
|
Security for exchange-radar 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.