Metadata-Version: 2.4
Name: stockapis-tg
Version: 0.1.0
Summary: Telegram channel monitoring for trading signals - StockAPIs
Project-URL: Homepage, https://stockapis.com
Project-URL: Documentation, https://stockapis.com/docs/telegram
Author-email: StockAPIs <dev@stockapis.com>
License: MIT
Keywords: cryptocurrency,monitoring,signals,telegram,trading
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: cryptg>=0.4.0
Requires-Dist: grpcio>=1.60.0
Requires-Dist: protobuf>=4.25.0
Requires-Dist: pydantic-settings>=2.7.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: redis>=5.0.0
Requires-Dist: rich>=13.7.0
Requires-Dist: telethon>=1.34.0
Requires-Dist: typer>=0.9.0
Provides-Extra: dev
Requires-Dist: build>=1.0.0; extra == 'dev'
Requires-Dist: mypy>=1.8.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.2.0; extra == 'dev'
Requires-Dist: twine>=4.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# stockapis-tg

Telegram channel monitoring for trading signals - StockAPIs.

## Install

```bash
pip install stockapis-tg
```

## Usage

```python
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

```bash
# 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
