Giter Club home page Giter Club logo

crypto-bot's Introduction

crypto-bot

Telegram bot that uses the CoinMarketCap API and the Binance API to get information on cryptocurrencies and the global cryptocurrency market.

Talk to @coinmarketcap_info_bot on Telegram! https://t.me/coinmarketcap_info_bot

Installation

  1. Clone the repo to your computer and install the required dependencies.
    git clone https://github.com/abhinavk99/crypto-bot.git
    cd crypto-bot
    npm install
  2. Get Binance API key and secret from your Binance user settings.
  3. Get a Telegram bot token from @BotFather.
  4. Get a CoinMarketCap API key from here.
  5. Make a file called .env in the repo directory.
  6. Copy/paste the below into the file.
    TELEGRAM_TOKEN=Token here
    BINANCE_KEY=Key here
    BINANCE_SECRET=Secret here
    COINMARKETCAP_KEY=Key here
    
  7. Put your Telegram token, Binance API key and secret, and CoinMarketCap API key where it says to in the config. Do not put quotes around the tokens.
  8. Run the bot.
    npm start

Commands

Command Description Usage Example
/info Get info on coin with that symbol /info <coin> /info BTC
/info Get info on coin with that CoinMarketCap rank /info <number> /info 11
/global Get total market information /global /global
/ Get latest Binance ticker price for a coin /<ticker> /ETH
/chart (Deprecated) Get chart on historical price for a coin /chart <coin> /chart Bitcoin

Releases

Releases start at v1.1.0 because I didn't know how to use git tags before then and manually changed the versions in package.json

crypto-bot's People

Contributors

abhinavk99 avatar dependabot[bot] 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.