GithubHelp home page GithubHelp logo

desprit / bicklebow Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.35 MB

Monitoring tool for your Tinkoff Invest positions + Telegram bot to alert on market spikes.

Makefile 3.40% Python 96.41% Shell 0.19%
python api telegram-bot telegram investment tinkoff-invest

bicklebow's Introduction

PyPI pyversions

Telegram bot that connects to your Tinkoff portoflio through the API, extracts open positions and allows you to create alerts on the market spikes. To obtain TinkoffAPI token you have to be a client of Tinkoff Invest. More info here

Installation (tested on Ubuntu 18.04)

First of all, make sure python3.8 is installed. If not, follow this article.

# Install PIP
sudo apt-get install python-pip
# Install virtualenv
sudo pip install virtualenv
# Create virtual environment
virtualenv -p python3.8 venv
# Activate it
source venv/bin/activate
# Install dependencies
pip install -r api/requirements.txt
# Initialize database
python api/src/database.py

Optionally create .env file in the root folder with the following content:

PYTHONPATH=PATH_TO_ROOT_FOLDER
ENVIRONMENT=testing
BOT_TOKEN=TOKEN_OBTAINED_FROM_BOT_FATHER
SERVER_IP=IP_ADDRESS_OF_YOUR_SERVER (only needed when using webhooks)

If you want to launch your bot on a remote server, consider using Telegram webhooks. More info on how to setup Nginx and create certificate in this Medium article.

Usage

# Run bot
python api/src/bot.py

Now connect to your bot though telegam, type /start to start conversation.

# Check triggers
python api/src/triggers.py USER_ID

bicklebow's People

Contributors

desprit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.