Skip to content

A go interface for accessing IEX finanical information

License

Notifications You must be signed in to change notification settings

AndrewRPorter/goiex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://travis-ci.com/AndrewRPorter/goiex.svg?branch=master

goiex

Note: the IEX api now requires a key for authentication, thus breaking this project.

A go interface for accessing IEX finanical information. Data provided for free by IEX. View IEX’s Terms of Use.

Installation

go get github.com/AndrewRPorter/goiex

Usage

package main

import (
   "fmt"
   "github.com/AndrewRPorter/goiex"
)

func main() {
   s, err := goiex.Get("AAPL")

   if err != nil {
      fmt.Errorf("Unable to fetch ticker: %s", "AAPL")
   }

   fmt.Println(s.Price)

   // fetch company information
   c, err := s.GetCompany()

   if err != nil {
      fmt.Errorf("Unable to fetch company data for: %s", s.Symbol)
   }
   fmt.Println(c.Description)
}

Available Methods

  • Get()
  • GetCompany()

Available Fields

  • Symbol
  • CompanyName
  • Exchange
  • Sector
  • Open
  • Close
  • High
  • Low
  • Volume
  • Price
  • Change
  • ChangePercent
  • AverageVolume
  • MarketCap
  • PeRatio
  • YearHigh
  • YearLow
  • YtdChange
  • Symbol
  • CompanyName
  • Exchange
  • Industry
  • Website
  • Description
  • CEO
  • Sector

About

A go interface for accessing IEX finanical information

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages