Telegram channel monitoring for trading signals - StockAPIs
Project description
stockapis-tg
Telegram channel monitoring for trading signals - StockAPIs.
Install
pip install stockapis-tg
Usage
from stockapis_tg import TelegramSpy
spy = TelegramSpy(
api_id=12345,
api_hash="your_api_hash",
session_string="YOUR_SESSION_STRING",
channels=["crypto_signals"],
)
@spy.on_signal
async def handle_signal(signal):
print(f"Signal: {signal.action} {signal.symbol}")
await spy.start()
CLI
# Generate session string
telegram-spy auth --api-id 12345 --api-hash abc123
# Test session
telegram-spy test --session "1BQA..."
# List channels
telegram-spy channels --session "1BQA..."
# Run spy
telegram-spy run
License
MIT
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
stockapis_tg-0.1.0.tar.gz
(30.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stockapis_tg-0.1.0.tar.gz.
File metadata
- Download URL: stockapis_tg-0.1.0.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81aad7b40815417ac9cb94a9ff5f9ce19e96a3083fb096ce469a8fbe45488718
|
|
| MD5 |
fd04b7bd1bf692c25dcbeb050d93782e
|
|
| BLAKE2b-256 |
89e60f18845b613adc92fc5e5d081358987dd0ae8434806355ed8ccc18a05615
|
File details
Details for the file stockapis_tg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stockapis_tg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 40.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6a310c47d652e21566bcc664a12d302463daefe6436c8bc28ce48fe9fbb3671
|
|
| MD5 |
493271a3f27c7fc54086beda43b071ae
|
|
| BLAKE2b-256 |
ac8abe69554c04208cdcaeda274ddf443b4274cc710fc4a4597c08b5c7a157f2
|