Giter Site home page Giter Site logo

ryanparadipta / crypto-opnbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hawooni/crypto-opnbot

1.0 0.0 1.0 6.16 MB

A simple crypto Telegram Bot based on chart-img.com API. The bot replies to the user with a screenshot of crypto market charts.

Home Page: https://crypto.opnbot.com

License: Apache License 2.0

Dockerfile 0.32% JavaScript 99.68%

crypto-opnbot's Introduction

CryptoOpnBot

It is a simple crypto Telegram Bot based on CHART-IMG API. It supports all TradingView symbols and is not limited to only crypto symbols. However, the focus will be on the crypto market in future updates.

Live Telegram Bot

http://t.me/CryptoOpnBot

You can use this bot if you don't want to customize your own. It will always run with the latest version.

Notice

CHART-IMG API key is required.

Setup

Get your free personal API key at https://chart-img.com.

Clone the repo

git clone https://github.com/hawooni/crypto-opnbot

cd crypto-opnbot

Setting

Customize preset settings by modifying config/setting.js. Refer to CHART-IMG Documentation for a more detailed configuration.

module.exports = {
  DEFAULT_SYMBOL: 'BTCUSDT',
  DEFAULT_EXCHANGE: 'BINANCE',
  DEFAULT_PRICE_INTERVAL: '3M',
  DEFAULT_CHART_INTERVAL: '1d',
  DEFAULT_CHART_STUDIES: ['EMA:50', 'EMA:200', 'RSI'],
  DEFAULT_TIMEZONE: 'Etc/UTC',
  ...
}

Environment Variable

You should create .env file with the following variable(s):

TELEGRAM_TOKEN=<your_telegram_token>
CHART_IMG_API_KEY=<your_chart_img_api_key>

Optional:

BOT_NAME=@CryptoOpnBot

CHART_IMG_WIDTH=1024
CHART_IMG_HEIGHT=768

Quick Run

NPM

npm install
npm start -- --telegramToken=<your_telegram_token> --apiKey=<your_chart_img_api_key>

Docker

docker run -d --restart=always --name crypto-opnbot \
-e TELEGRAM_TOKEN=<your_telegram_token> \
-e CHART_IMG_API_KEY=<your_chart_img_api_key> \
hawooni/crypto-opnbot:latest

Commands

/start

/start

/example

/chart

/price

/price

/chart

/chart

/chart

/chart

/fear_greed_index

/fear_greed_index

crypto-opnbot's People

Contributors

hawooni avatar

Stargazers

Ryan Paradipta avatar

Forkers

orochi8-core

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.