https://github.com/andrewrporter/goiex
A go interface for accessing IEX finanical information
https://github.com/andrewrporter/goiex
data fetch finance golang iex iex-api iextrading
Last synced: about 1 year ago
JSON representation
A go interface for accessing IEX finanical information
- Host: GitHub
- URL: https://github.com/andrewrporter/goiex
- Owner: AndrewRPorter
- License: mit
- Created: 2018-07-17T17:11:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T22:23:53.000Z (over 6 years ago)
- Last Synced: 2025-03-30T10:51:15.533Z (over 1 year ago)
- Topics: data, fetch, finance, golang, iex, iex-api, iextrading
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
.. image:: https://travis-ci.com/AndrewRPorter/goiex.svg?branch=master
:target: https://travis-ci.com/AndrewRPorter/goiex
=====
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
------------
.. code::
go get github.com/AndrewRPorter/goiex
Usage
-----
.. code:: go
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``