// FetchDailyQuotes return a Quote slice containing daily quotes on the month of the year.
FetchDailyQuotes return a Quote slice containing daily quotes on the month of the year.
// FetchDailyQuotes return a Quote slice containing daily quotes on the month of the year .
func (c *Client) FetchDailyQuotes(code string, year int, month time.Month) ([]Quote, error) {
	rawData, err := c.fetchDailyQuotes(code, year, month)
	if err != nil {
		var e *noDataError
		if errors.As(err, &e) {
			return []Quote{}, nil
		}
		return nil, err
	}
	rawDailyQuotes := zipFieldsAndItems(rawData, "fields", "data")
	qs := make([]Quote, 0)
	for _, rawDailyQuote := range rawDailyQuotes {
		qs = append(qs, *convertRawDailyQuote(rawDailyQuote, code, year, month))
	}
	return qs, nil
}
func ( c * Client ) FetchDailyQuotes ( code string , year int , month time . Month ) ( [ ] Quote , error ) { rawData , err := c . fetchDailyQuotes ( code , year , month ) if err != nil { var e * noDataError if errors . As ( err , & e ) { return [ ] Quote { } , nil } return nil , err } rawDailyQuotes := zipFieldsAndItems ( rawData , " " , " " ) qs := make ( [ ] Quote , 0 ) for _ , rawDailyQuote := range rawDailyQuotes { qs = append ( qs , * convertRawDailyQuote ( rawDailyQuote , code , year , month ) ) } return qs , nil }
FetchDailyQuotes return a Quote slice containing daily quotes on the month of the year.
FetchDailyQuotes return a Quote slice containing daily quotes on the month of the year .