Skip to content

Commit 641b07a

Browse files
committed
rename class for kubernetes
1 parent e842aec commit 641b07a

7 files changed

Lines changed: 9 additions & 9 deletions

File tree

LLM_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The `Bot` class (`tradingbot/utils/botclass.py`) is the foundation. All trading
6969
- **Examples**:
7070
- `sharpePortfoliooptWeekly.py` (portfolio optimization with multiple assets)
7171
- `aihedgefundbot.py` (reads trading decisions from external database and rebalances)
72-
- `telegram_signalsbankbot.py` (reads `telegram_messages` table, classifies signals via AI, partial buys at 20% of cash per signal; uses `acted_on` column for crash-safe deduplication)
72+
- `telegramsignalsbankbot.py` (reads `telegram_messages` table, classifies signals via AI, partial buys at 20% of cash per signal; uses `acted_on` column for crash-safe deduplication)
7373

7474
### Bot Class Lifecycle
7575

docs/api/telegram-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TelegramMessage(Base):
4343

4444
**Constraints**:
4545
- Unique on `(channel, message_id)` — prevents duplicate storage
46-
- `acted_on` set atomically before AI classification in `telegram_signalsbankbot` — crash-safe
46+
- `acted_on` set atomically before AI classification in `telegramsignalsbankbot` — crash-safe
4747

4848
**Indexes**: `(channel, published_at)`, `symbol`
4949

docs/architecture/database-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class TelegramMessage(Base):
149149
**Unique constraint**: `(channel, message_id)` — same message never stored twice.
150150
**Indexes**: `(channel, published_at)`, `symbol` — efficient queries by symbol or channel timeline.
151151

152-
`acted_on` is set to `True` by `telegram_signalsbankbot` **before** the AI classification call — crash-safe deduplication without a separate tracking table.
152+
`acted_on` is set to `True` by `telegramsignalsbankbot` **before** the AI classification call — crash-safe deduplication without a separate tracking table.
153153

154154
See [Telegram Monitor Guide](../guides/telegram-monitor.md) and [Telegram Signals Bot Guide](../guides/telegram-signals-bot.md) for setup and usage.
155155

docs/guides/telegram-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ tradingbot/utils/telegram_monitor.py (implementation)
296296
└── get_existing_message_ids() → Deduplication
297297
```
298298
299-
Runs as a stateless CronJob — no persistent connection. Downstream, `telegram_signalsbankbot` reads the stored messages and acts on signals. See [Telegram Signals Bot Guide](telegram-signals-bot.md).
299+
Runs as a stateless CronJob — no persistent connection. Downstream, `telegramsignalsbankbot` reads the stored messages and acts on signals. See [Telegram Signals Bot Guide](telegram-signals-bot.md).
300300
301301
---
302302

docs/guides/telegram-signals-bot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Telegram Signals Bot Guide
22

3-
`telegram_signalsbankbot` is a trading bot that reads AI-summarized Telegram messages from the database, classifies them as BUY/SELL entry signals, and executes trades automatically.
3+
`telegramsignalsbankbot` is a trading bot that reads AI-summarized Telegram messages from the database, classifies them as BUY/SELL entry signals, and executes trades automatically.
44

55
It is the **downstream consumer** of the `telegram-monitor` CronJob — the monitor fills the `telegram_messages` table, the signals bot acts on it.
66

@@ -62,7 +62,7 @@ The AI resolves broker-specific CFD names (US500, DJ30.c, XAUUSD) to Yahoo Finan
6262
## Configuration
6363

6464
```python
65-
# telegram_signalsbankbot.py
65+
# telegramsignalsbankbot.py
6666
CHANNEL_ID = "-1001998690333" # The Signals Bank - FREE
6767
LOOKBACK_DAYS = 3 # Only look at messages from last N days
6868
POSITION_SIZE_PCT = 0.2 # 20% of cash per signal
@@ -77,7 +77,7 @@ To monitor a different channel, change `CHANNEL_ID` to the numeric Telegram chan
7777
In `helm/tradingbots/values.yaml`:
7878

7979
```yaml
80-
- name: telegram_signalsbankbot
80+
- name: telegramsignalsbankbot
8181
schedule: "*/5 * * * *" # Every 5 minutes — matches telegram-monitor cadence
8282
```
8383
@@ -91,7 +91,7 @@ No special env vars beyond the standard set — it reads from the same `postgres
9191

9292
| File | Purpose |
9393
|---|---|
94-
| `tradingbot/telegram_signalsbankbot.py` | Bot implementation |
94+
| `tradingbot/telegramsignalsbankbot.py` | Bot implementation |
9595
| `tradingbot/utils/db.py` | `TelegramMessage` model (incl. `acted_on`) |
9696
| `helm/tradingbots/values.yaml` | Schedule configuration |
9797

helm/tradingbots/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ bots:
181181
- name: taregimebot
182182
schedule: "20 17 * * 4" # weekly 5:20 PM, Thursday
183183

184-
- name: telegram_signalsbankbot
184+
- name: telegramsignalsbankbot
185185
schedule: "*/5 * * * *" # Every 5 minutes (matches telegram-monitor cadence)
186186

187187
# telegram monitor

0 commit comments

Comments
 (0)