
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
github.com/oscarli916/yahoo-finance-api
go get github.com/oscarli916/yahoo-finance-api
package main
import (
"fmt"
yfa "github.com/oscarli916/yahoo-finance-api"
)
func main() {
t := yfa.NewTicker("AAPL")
// get the latest PriceData
quote, err := t.Quote()
if err != nil {
fmt.Println("Error fetching quote:", err)
return
}
fmt.Println(quote.Close)
// history data
history, err := t.History(yfa.HistoryQuery{Range: "1d", Interval: "1m"})
if err != nil {
fmt.Println("Error fetching history:", err)
return
}
fmt.Println(history)
// option chain
e := t.ExpirationDates()
oc := t.OptionChainByExpiration(e[2])
fmt.Println(oc)
}
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.