MIT License

项目介绍

m1/go-finnhub 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 MIT License 许可证,目前获得 94 个 Star、22 次 Fork。

仓库全名
m1/go-finnhub
开源许可证
MIT License
Star 数
94
Fork 数
22

README 摘要

go-finnhub Simple and easy to use client for stock, forex and crpyto data from finnhub.io written in Go. Access real-time market data from 60+ stock exchanges, 10 forex brokers, and 15+ crypto exchanges Installation go get github.com/m1/go-finnhub Usage First sign up for your api token here finnhub.io Follow this basic example, for more in-depth documentation see the docs

完整内容见 GitHub 原始 README 或本页 。

常见问题

go-finnhub 用什么语言开发?

主要使用 Go 编写,采用 MIT License 许可证,目前有 94 个 Star。

go-finnhub 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 go-finnhub 的源码?

可以直接克隆仓库:git clone https://github.com/m1/go-finnhub.git,默认分支为 master;安装与运行步骤见仓库 README。

go-finnhub 最近还在维护吗?

仓库最近一次更新为 2020年2月1日,当前没有未关闭的 Issue;Star 数为 94,可作为社区活跃度的参考。

关于

Simple and easy to use client for stock market, forex and crypto data from finnhub.io written in Go. Access real-time financial market data from 60+ stock exchanges, 10 forex brokers, and 15+ crypto exchanges

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

README

go-finnhub

GoDoc Build Status Go Report Card Release codecov

Simple and easy to use client for stock, forex and crpyto data from finnhub.io written in Go. Access real-time market data from 60+ stock exchanges, 10 forex brokers, and 15+ crypto exchanges

Installation

go get github.com/m1/go-finnhub

Usage

First sign up for your api token here finnhub.io

Follow this basic example, for more in-depth documentation see the docs:

c := client.New("your_token_here")

// Stocks
company, err := c.Stock.GetProfile("AAPL")
ceo, err := c.Stock.GetCEO("AAPL")
recommendation, err := c.Stock.GetRecommendations("AAPL")
target, err := c.Stock.GetPriceTarget("AAPL")
options, err := c.Stock.GetOptionChain("DBD")
peers, err := c.Stock.GetPeers("AAPL")
earnings, err := c.Stock.GetEarnings("AAPL")
candle, err := c.Stock.GetCandle("AAPL", finnhub.CandleResolutionDay, nil)
exchanges, err := c.Stock.GetExchanges()
symbols, err := c.Stock.GetSymbols("US")
gradings, err := c.Stock.GetGradings(&finnhub.GradingParams{Symbol: "AAPL"})

// Crypto
exchanges, err := c.Crypto.GetExchanges()
symbols, err := c.Crypto.GetSymbols("Binance")
candle, err := c.Crypto.GetCandle("BINANCE:BEAMUSDT", finnhub.CandleResolutionMonth, nil)

// Forex
exchanges, err := c.Forex.GetExchanges()
symbols, err := c.Forex.GetSymbols("oanda")
candle, err := c.Forex.GetCandle("OANDA:XAU_GBP", finnhub.CandleResolutionMonth, nil)

// News
news, err := c.News.Get(nil)
news, err = c.News.Get(&finnhub.NewsParams{Category: finnhub.NewsCategoryCrypto})
news, err = c.News.GetCompany("AAPL")
sentiment, err := c.News.GetSentiment("AAPL")

评论

暂无评论