Open Zidious opened 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
coin
days
/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
TradingView have an awesome library but issues with nodeJS: https://github.com/tradingview/lightweight-charts/pull/613
A possible options is it is fixed
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 becoin
anddays
. It would look something like: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