Skip to content

illyabusigin/quandl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Quandl

Build Status GoDoc

This library provides easy access to the Quandl API using the Go programming language.

The full documentation is at:
godoc.org/github.com/DannyBen/quandl

Install

$ go get github.com/DannyBen/quandl

Features

  • Supports 3 call types to Quandl: GetSymbol, GetList and GetSearch.
  • Returns either a native Go object, or a raw (CSV/JSON/XML) response.
  • Built in cache handling.

Usage

Basic usage looks like this:

quandl.ApiKey = "YOUR KEY"
data, err := quandl.GetSymbol("WIKI/AAPL", nil)

and will return a native Go object. To use the data in the response, iterate through its Data property:

for i, item := range data.Data {
    fmt.Println(i, item[0], item[2])
}

To receive a raw response from Quandl (CSV, JSON, XML) you can use:

data, err := quandl.GetSymbolRaw("WIKI/AAPL", "csv", nil)

To pass options to the Quandl API, use something like this:

v := quandl.Options{}
v.Set("trim_start", "2014-01-01")
v.Set("trim_end", "2014-02-02")
data, err := quandl.GetSymbol("WIKI/AAPL", v)

More examples are in the quandl_test file or in the official godoc documentation

About

Go library for accessing Quandl API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%