Skip to content

bzdanowicz/stock_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stock_data

GitHub GitHub last commit Lines of code GitHub go.mod Go version

Table of contents

General info

Terminal application designed to provide an easy way for users to get up-to-date, basic price information of all the major stocks trading in the US. Data is pulled from the Finnhub API.

Technologies

Project is created with:

Setup

  1. Clone the repository
  2. Add API key and stock symbols to config.json file
  3. Run application with following command:
$ go run cmd/main.go

Configuration

The configuration file is located at ~/config.json User should provide own API Key (obtained from Finnhub), list of requested stock ticker symbols and base currency to calculate rates.

{
    "apiKey": "apiKey",
    "quotes": [
        "AAPL", "MSFT", "AMZN", "GOOG", "APVO"
    ],
    "base": "PLN"
}