/portfolio-bot

Telegram Bot that allows you to get information on your investments (stocks, ETFs, etc)

Primary LanguageTypeScript

Setup

yarn # install dependencies

Create a file called depot.csv with the following contents:

Bestand;ISIN;Kaufkurs;Kaufkurs Currency
123;IE00B3YLTY66;100,00;EUR

Then ask BotFather for a bot token and start the bot with

export BOT_TOKEN=123:AbcE34n
yarn bot

Available commands:

  • /between <A> <B> show difference between closing time A days ago to B days ago. 0 days ago means the current live price instead of closing price note that 0 days ago gets the current live price instead of closing price
  • /sinceYesterday = /between 1 0
  • /before = /between 2 1
  • /sinceLast - show difference since last /sinceLast request
  • /sinceStart - show difference compared to your original buy price