// FetchMonthlyQuotes return a Quote slice containing monthly quotes of the year.
FetchMonthlyQuotes return a Quote slice containing monthly quotes of the year.
// FetchMonthlyQuotes return a Quote slice containing monthly quotes of the year .
func (c *Client) FetchMonthlyQuotes(code string, year int) ([]Quote, error) {
	rawData, err := c.fetchMonthlyQuotes(code, year)
	if err != nil {
		var e *noDataError
		if errors.As(err, &e) {
			return []Quote{}, nil
		}
		return nil, err
	}
	rawMonthlyQuotes := zipFieldsAndItems(rawData, "fields", "data")
	qs := make([]Quote, 0)
	for _, rawMonthlyQuote := range rawMonthlyQuotes {
		qs = append(qs, *convertRawMonthlyQuote(rawMonthlyQuote, code, year))
	}
	return qs, nil
}
func ( c * Client ) FetchMonthlyQuotes ( code string , year int ) ( [ ] Quote , error ) { rawData , err := c . fetchMonthlyQuotes ( code , year ) if err != nil { var e * noDataError if errors . As ( err , & e ) { return [ ] Quote { } , nil } return nil , err } rawMonthlyQuotes := zipFieldsAndItems ( rawData , " " , " " ) qs := make ( [ ] Quote , 0 ) for _ , rawMonthlyQuote := range rawMonthlyQuotes { qs = append ( qs , * convertRawMonthlyQuote ( rawMonthlyQuote , code , year ) ) } return qs , nil }
FetchMonthlyQuotes return a Quote slice containing monthly quotes of the year.
FetchMonthlyQuotes return a Quote slice containing monthly quotes of the year .