Unofficial Telegram bot for retrieving data from a QuantConnect live algorithm deployment. Supports Oanda accounts.
/get_qc: Gets the current $ NAV from a QuantConnect deployment./get_oanda: Gets a detailed account summary from an Oanda account, including:- NAV
- Unrealised P&L
- Realised P&L
- Margin call %
- (for each open position) Symbol, Unrealised P&L, Direction, Units
- Windows or *NIX instance
- (if Windows) Visual Studio 2017
- QuantConnect account and API key
- Oanda account and API key
- Telegram account and Bot API token
- Clone into directory of choice.
- Fill out the
bot-config.jsonfile. - Restore NuGet packages.
- Compile and run.
- Follow steps to install Mono for your distro, making sure you install
mono-complete. sudo apt-get update && sudo apt-get install nuget- Clone into directory of choice,
cdinto this directory. - Fill out the
bot-config.jsonfile. nuget restore QuantConnect-Telegram-Bot.slnmsbuild QuantConnect-Telegram-Bot.sln /p:Configuration=Releasecd QuantConnect-Telegram-Bot/bin/Releasemono ./QuantConnect-Telegram-Bot.exe
If you want to run the process in the background and have it restart automatically if it crashes, replace the last two steps above with the following:
chmod +x ./monitor.shnohup ./monitor.sh &
- Clone into directory of choice,
cdinto this directory. - Fill out the
bot-config.jsonfile. - Build a Docker image. Example for Google Cloud deployment:
gcloud auth login, follow stepsgcloud config set project [PROJECT_ID]gcloud builds submit --tag gcr.io/[PROJECT_ID]/quantconnect-telegram-bot .
- Run or deploy image as you see fit.