{"size": 426, "ext": "js", "max_stars_repo_path": "src/commands/bitcoin.js", "max_stars_repo_name": "gabrielrufino/GeneseBot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/commands/bitcoin.js", "max_issues_repo_name": "gabrielrufino/GeneseBot", "max_issues_repo_issues_event_min_datetime": "2019-09-28T12:10:23.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T06:23:35.000Z", "max_forks_repo_path": "src/commands/bitcoin.js", "max_forks_repo_name": "gabrielrufino/GeneseBot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 20.2857142857, "max_line_length": 83, "alphanum_fraction": 0.6408450704}
const axios = require('axios')

const bitcoin = async context => {
  const { data } = await axios.get('https://www.mercadobitcoin.net/api/BTC/ticker')

  const response = `
    Mecado Bitcoin

    High: ${data.ticker.high}
    Low: ${data.ticker.low}
    Vol: ${data.ticker.vol}
    Last: ${data.ticker.last}
    Buy: ${data.ticker.buy}
    Sell: ${data.ticker.sell}
  `

  context.reply(response)
}

module.exports = bitcoin
