GithubHelp home page GithubHelp logo

flixing / crypto-coins-info-bot-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lytves/crypto-coins-info-bot-v2

0.0 1.0 0.0 235 KB

Telegram bot on python which will inform you about actual prices of all crypto coins

License: MIT License

Python 100.00%

crypto-coins-info-bot-v2's Introduction

CryptoCoinsInfoBot v2

@CryptoCoinsInfoBot - enjoy it!

This is a simple version of a Telegram Bot, had been used python-telegram-bot library, you can use start_polling or webhook updates methods for recieve the messages (see cryptocoinsinfobot.py code)

For use unicode emojis had been used Emoji Library

APIs of CoinMarketCap professional API and CryptoCompare.com are used

UPD 23/01/2019: It was implemented CoinMarketCap professional API, which provide quite restricted paid plans, so the bot makes only 1 request/update CMC data per hour (to can be worked inside free BASIC plan), if you bought paid plan you should change config variable config.TIME_INTERVAL to get updated your data more often


Use:

For recive an actual price of some crypto coin use the keyboard with preset top crypto coins or type and send to the bot some coin name or ticker, e.g.:

VeChain

OMG

DigixDAO

Settings:

Bot Settings are in the file cryptocoinsinfo/config.py:

  • put your TOKEN_BOT and YOUR_TELEGRAM_ALIAS for users' feedback here.

  • to can use new CoinMarketCap Professional API you should sign up on the CoinMarketCap and put into cryptocoinsinfo/config.py your API Key to CMC_API_KEY variable

  • bot downloads two json files with actual data from APIs (Coinmarketcap and Cryptocompare) each TIME_INTERVAL seconds and save it locally (some caching system)

  • script are using log rotations TimedRotatingFileHandler


Screenshot of the bot work:

CryptoCoinsInfoBot

crypto-coins-info-bot-v2's People

Contributors

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