Skip to content
/ stonks Public

Simple telegram bot for display actual currency exchange rates from Forex (int) and offline point (Russia).

License

Notifications You must be signed in to change notification settings

esemi/stonks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tests

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.

Pre-requirements

Local setup

$ 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

Run tests

$ pytest --cov=app

Run linters

$ poetry run mypy app/
$ poetry run flake8 app/

Run background task

python -m app.rates_update_task

Run telegram bot

python -m app.bot_app

Links

About

Simple telegram bot for display actual currency exchange rates from Forex (int) and offline point (Russia).

Topics

Resources

License

Stars

Watchers

Forks

Languages