Skip to content

pdevty/googlefinance-client-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

googlefinance-client-go GoDoc

googlefinance-client-go is a Go client library for google finance.

Installation

execute:

$ go get github.com/pdevty/googlefinance-client-go

Usage

package main

import (
	"context"
	"fmt"
	gf "github.com/pdevty/googlefinance-client-go"
	"time"
)

func main() {

	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
	defer cancel()

	prices, err := gf.GetPrices(ctx, &gf.Query{P: "1Y", I: "86400", X: "TYO", Q: "7203"})
	if err != nil {
		panic(err)
	}

	fmt.Println(prices)
}

Refer to godoc for more infomation.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

googlefinance-client-go is a Go client library for google finance.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages