Zidious / crypto-telegrambot

A cryptocurrency Telegram BOT
MIT License
0 stars 1 forks source link

feature: a new command `/chart` #10

Open Zidious opened 2 years ago

Zidious commented 2 years ago

Why?

Another useful bot command allowing users to fetch the market chart of their favourite coin

How?

Utilising the CoinGecko API to use the endpoint coins_ohlc (candlestick statistics).

The user would use the command /chart and then pass in the required arguments, these would be coin and days . It would look something like:

/chart bitcoin 7

Research is required to find a library to map the fetched data and post the generate chart into the TG chat.

endpoint response for reference:

https://pastebin.com/7MSZYUR0

Zidious commented 2 years ago

TradingView have an awesome library but issues with nodeJS: https://github.com/tradingview/lightweight-charts/pull/613

A possible options is it is fixed