-
Notifications
You must be signed in to change notification settings - Fork 6
/
doc.go
30 lines (30 loc) · 859 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Package quandl provides easy access to the Quandl API
//
// It provides methods for getting response from Quandl in
// several formats.
//
// 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)
//
package quandl