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

get bot working with marketdata api

This commit is contained in:
2023-04-06 23:27:02 -06:00
parent bc1ad95c75
commit b72f0518c2
6 changed files with 91 additions and 136 deletions

4
bot.py
View File

@@ -238,7 +238,7 @@ def intra(update: Update, context: CallbackContext):
df,
type="renko",
title=f"\n{symbol.name}",
volume="volume" in df.keys(),
volume="Volume" in df.keys(),
style="yahoo",
savefig=dict(fname=buf, dpi=400, bbox_inches="tight"),
)
@@ -292,7 +292,7 @@ def chart(update: Update, context: CallbackContext):
df,
type="candle",
title=f"\n{symbol.name}",
volume="volume" in df.keys(),
volume="Volume" in df.keys(),
style="yahoo",
savefig=dict(fname=buf, dpi=400, bbox_inches="tight"),
)