Git Product home page Git Product logo

go-crypto-dash's Introduction

Cryptocurrency Price Checker with Visualization

Cryptocurrency Price Chart

A Go-based application that fetches and displays cryptocurrency prices using the CoinGecko API. This project demonstrates HTTP requests, JSON parsing, caching mechanisms, and data visualization in Go.

Features

  • Fetch current prices of various cryptocurrencies.
  • Support for multiple cryptocurrencies and fiat currencies.
  • Caching of price data to reduce API calls.
  • Visualization of cryptocurrency prices as a CSV file or a bar chart image.
  • Command-line interface for easy and flexible use.

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You'll need Go installed on your machine (version 1.15 or higher). Additionally, for visualization, the Gonum Plot library is used:

go get -u gonum.org/v1/plot/...

Installing

Clone the repository to your local machine:

git clone https://github.com/[your-username]/crypto-price-checker.git

Navigate to the project directory:

cd crypto-price-checker

Running the Application

Run the server using:

go run . bitcoin,ethereum usd

Replace bitcoin,ethereum with the cryptocurrencies of your choice and usd with your preferred fiat currency.

Usage

The application can be used via command-line interface. Here are some example usages:

  • To fetch prices for Bitcoin (BTC) and Ethereum (ETH) in USD:

    go run . bitcoin,ethereum usd
  • The application will generate a CSV file (prices.csv) or a bar chart image (prices.png) based on the uncommented line in the main.go file.

Visualization

This application supports two types of visualizations:

  1. CSV Output: Generates a CSV file with cryptocurrency prices, which can be imported into tools like Excel or Google Sheets for custom visualizations.
  2. Bar Chart Image: Generates a bar chart image displaying the prices of the specified cryptocurrencies.

Built With

  • Go - The Go Programming Language
  • Gonum Plot - A plotting library for Go

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Hat tip to the CoinGecko API for providing cryptocurrency data.
  • Inspired by the Go community and their support for open-source development.

go-crypto-dash's People

Contributors

berkdurmus avatar

Watchers

 avatar

go-crypto-dash's Issues

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.