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
Metadata
Release files for stockapis-tg 0.1.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 | |
|---|---|---|---|
| stockapis_tg-0.1.0.tar.gz | 30.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stockapis_tg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.4 kB
Release files / stockapis_tg-0.1.0.tar.gz
| Download URL | stockapis_tg-0.1.0.tar.gz |
|---|---|
| Size | 30.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81aad7b40815417ac9cb94a9ff5f9ce19e96a3083fb096ce469a8fbe45488718
|
|
BLAKE2b-256 checksum How to use checksums |
89e60f18845b613adc92fc5e5d081358987dd0ae8434806355ed8ccc18a05615
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|
Release files / stockapis_tg-0.1.0-py3-none-any.whl
| Download URL | stockapis_tg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 40.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6a310c47d652e21566bcc664a12d302463daefe6436c8bc28ce48fe9fbb3671
|
|
BLAKE2b-256 checksum How to use checksums |
ac8abe69554c04208cdcaeda274ddf443b4274cc710fc4a4597c08b5c7a157f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|