Skip to content

kvattikuti/mktdata-hist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pulls down historical market data (daily quotes) for Equities from Yahoo Finance and saves to a postgres database.

Build

  1. mkdir mktdatahst-wkspc
  2. cd mktdatahst-wkspc
  3. export GOPATH=pwd
  4. mkdir src
  5. go get github.com/lib/pq
  6. go install github.com/lib/pq
  7. go get github.com//mktdata-hist
  8. go install github.com//mktdata-hist

Database setup

create table if not exists daily_quotes_hst (symbol varchar(10), trade_dt date, open real, high real, low real, close real, volume integer, adj_close real);

Run

  1. cp src/github.com//mktdata-hist/config.json bin/
  2. edit config.json to specify , symbols, years and database url
  3. cd bin
  4. ./mktdata-hst

Known Issues

When run on new year, logic will skip getting quotes for last day of the past year. As a workaround, delete all of the past year data and rerun the program.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages