Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matthewoestreich/fmpgo

fmpcloud.io client in golang
https://github.com/matthewoestreich/fmpgo

fmpcloud fmpcloudio stock-api stock-market stock-market-api stocks

Last synced: 17 days ago
JSON representation

fmpcloud.io client in golang

Awesome Lists containing this project

README

        

# fmpgo
fmpcloud.io client in golang

# WORK IN PROGRESS

This repo is a WIP.

# API Design

Our API is designed to [mirror `fmpcloud.io` documentation](https://fmpcloud.io/documentation).

Consider the following hierarchy...

![fmpcloud_sidebar](https://raw.githubusercontent.com/oze4/fmpgo/main/.github/docs/img/sidebar.png)

Each 'category' has 'actions'...

![fmpcloud_stockTimeSeries](https://raw.githubusercontent.com/oze4/fmpgo/main/.github/docs/img/stockTimeSeries_Sidebar.png)

The path above will match up with our API, so it's easy to follow the docs and use this library...

```golang
// Build fmpcloud.io client with your own client (optional)
httpclient := &http.Client{}
fmpclient := fmpgo.NewWithClient(httpclient, "")
// Get quotes
quotes, _ := fmpclient.StockTimeSeries().RealTimeQuote([]string{"ABCD"}) // -> []fmpgo.Quote, error
```