Code Monkey home page Code Monkey logo

blocktrackerbot's Introduction

BlockTracker

This is a bot for tracking cryptocurrencies prices and portfolios. Here I use free CoinGecko API, so information is only available for top 250 cryptocurrencies.

For developer

In order to launch this project you need to:

  • Refer to dao classes to create database.
  • Go to src/main/java/org/vitaliistf/AppConfiguration.java and fill static fields with your database connection information, bot username and token.
  • Start the application.

Project description:

  • There are classes that represent cache and CoinGecko API connector in coingecko package.
  • There is AppConfiguration class. It represents configuration for application.
  • All the communications of a bot work through classes in controllers package. Each class work mostly with one model and designed for processing user requests, sending messages and saving data in database.
  • dao package classes represent data access objects for each model. Note that there is no watchlist model, but there is WatchlistDao class, designed to save watchlist information for users.
  • There is Menu class in menu package. It represents menu layout.
  • models package is designed for all the models that are used.
  • sessions package contains classes to save user sessions for polling.
  • BlockTracker class represents bot itself.
  • There is PrintFormatter class in util package, it is designed to format data before sending it to user.

For user

Note that there is keyboard menu designed for this bot. All the commands are used through this menu.

What this bot does?

  • You can get price for any cryptocurrency by clicking ๐Ÿ“ˆ Price button. Then you input (case-insensitive) symbol of the coin, and receive the price. The price may be put out in scientific notation for compactness.
  • You can get your watchlist (๐Ÿ‘€ My Watchlist) and add/remove coins to it.
  • To get detailed info about coin from your watchlist, type the symbol.
  • You can add portfolio for your account. (๐Ÿ’ผ Show portfolios / ๐Ÿ’ผ New portfolio)
  • In order to add coin to your portfolio, input ๐Ÿ“ƒ New transaction and follow instructions.
  • Then your portfolio will look like this.
  • You can watch your transactions. (๐Ÿ“ƒ Show transactions)
  • Actually, there are much more actions that you can do here. Explore yourself: https://t.me/Block_Tracker_bot

blocktrackerbot's People

Contributors

vitaliistf 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.