1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-08-03 03:51:26 +00:00

changed how intra data is calculated

This commit is contained in:
2023-04-10 16:24:58 -06:00
parent 845c929311
commit fa81669825
4 changed files with 19 additions and 10 deletions

2
bot.py
View File

@@ -237,7 +237,7 @@ def intra(update: Update, context: CallbackContext):
update.message.reply_photo(
photo=buf,
caption=f"\nIntraday chart for {symbol.name} from {df.first_valid_index().strftime('%d %b at %H:%M')} to"
+ f" {df.last_valid_index().strftime('%d %b at %H:%M')}"
+ f" {df.last_valid_index().strftime('%d %b at %H:%M %Z')}"
+ f"\n\n{s.price_reply([symbol])[0]}",
parse_mode=telegram.ParseMode.MARKDOWN,
disable_notification=True,