Simple telegram bot for display actual currency exchange rates from Forex (int) and offline point (Russia).
Support USD.RUB, CZK.RUB and EUR.RUB pairs.
Used for p2p exchange chats.
$ git clone git@github.com:esemi/stonks.git
$ cd stonks
$ python3.9 -m venv venv
$ source venv/bin/activate
$ pip install -U poetry pip setuptools
$ poetry config virtualenvs.create false --local
$ poetry install
Create env file to override default config
cat > .env << EOF
throttling_time=2.0
debug=true
telegram_token=U_TELEGRAM_TOKEN
EOF
$ pytest --cov=app
$ poetry run mypy app/
$ poetry run flake8 app/
python -m app.rates_update_task
python -m app.bot_app