Documentation
¶
Index ¶
Constants ¶
View Source
const YahooSource = "YAHOO"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type YahooChart ¶
type YahooChart struct {
Chart struct {
Result []struct {
Timestamp []int64 `json:"timestamp"`
Indicators struct {
Quote []struct {
Volume []float64 `json:"volume"`
High []float64 `json:"high"`
Close []float64 `json:"close"`
Low []float64 `json:"low"`
Open []float64 `json:"open"`
} `json:"quote"`
} `json:"indicators"`
} `json:"result"`
Error any `json:"error"`
} `json:"chart"`
}
type YahooFinancialData ¶
type YahooFinancialData struct {
QuoteSummary struct {
Result []struct {
FinancialData struct {
CurrentPrice struct {
Raw float64 `json:"raw"`
} `json:"currentPrice"`
} `json:"financialData"`
RecommendationTrend struct {
Trend []struct {
Period string `json:"period"`
StrongBuy int64 `json:"strongBuy"`
Buy int64 `json:"buy"`
Sell int64 `json:"sell"`
Hold int64 `json:"hold"`
StrongSell int64 `json:"strongSell"`
} `json:"trend"`
} `json:"recommendationTrend"`
} `json:"result"`
Error any `json:"error"`
} `json:"quoteSummary"`
}
Click to show internal directories.
Click to hide internal directories.