A telegram bot to monitor the state of the market.
Bot's message example:
02/05/2021 итоги дня:
🇷🇺 IMOEX: 3392.73 (📈 +0.61%)
🇷🇺 RTSI: 1431.76 (📈 +2.07%)
🇷🇺 RGBI: 151.16 (📈 +0.19%)
🇷🇺 RGBITR: 616.48 (📈 +0.20%)
📊 Spread index: -0.05% (📉 -0.41%)
💵 USD/RUB: 74.70 (📉 -1.28%)
💶 EUR/RUB: 89.78 (📉 -0.86%)
This bot is a console application that sends a message to the specified user and shuts down.
The Moscow Exchange provides close values after 19:00 MSK. If you run this bot before 19:00 MSK or on weekends you will get yesterday values or N/D.
MyMarketBots sends data visualizations.
Yield curve (zcyc from moex).
Steps to run this bot:
- Build the solution using
dotnet build
. - Set env-variables
TELEGRAM_BOT_TOKEN
andTELEGRAM_SUBSCRIBER_ID
. - Set path to python interpreter to
PYTHON_INTERPRETER
. - Run F# project
dotnet run --project MyMarketBot -daily -zcyc
Check a GitHub action to see these steps.
Command line args:
-daily
- send daily message with indexes and currency.-zcyc
- send yield curve for russian bonds.
Environment variables:
TELEGRAM_BOT_TOKEN
- your bot's token. You can get it from Bot Father.TELEGRAM_SUBSCRIBER_ID
- your chat it. To get it run your bot in a debugger mode and send a message. Bot log your chat id to a console.PYTHON_INTERPRETER
- path to python interpreter. Uses with-zcyc
.