// FetchDayQuotes returns a map that maps stock symbols to their corresponding quotes on that date.
FetchDayQuotes returns a map that maps stock symbols to their corresponding quotes on that date.
// FetchDayQuotes returns a map that maps stock symbols to their corresponding quotes on that date .
func (c *Client) FetchDayQuotes(date time.Time) (map[string]Quote, error) {
	rawData, err := c.fetchDayQuotes(date)
	if err != nil {
		var e *noDataError
		if errors.As(err, &e) {
			return map[string]Quote{}, nil
		}
		return nil, err
	}
	rawDayQuotes := zipFieldsAndItems(rawData, "fields9", "data9")
	qs := map[string]Quote{}
	for _, rawDayQuote := range rawDayQuotes {
		q := convertRawDayQuote(rawDayQuote, date)
		qs[q.Code] = *q
	}
	return qs, nil
}
func ( c * Client ) FetchDayQuotes ( date time . Time ) ( map [ string ] Quote , error ) { rawData , err := c . fetchDayQuotes ( date ) if err != nil { var e * noDataError if errors . As ( err , & e ) { return map [ string ] Quote { } , nil } return nil , err } rawDayQuotes := zipFieldsAndItems ( rawData , " " , " " ) qs := map [ string ] Quote { } for _ , rawDayQuote := range rawDayQuotes { q := convertRawDayQuote ( rawDayQuote , date ) qs [ q . Code ] = * q } return qs , nil }
FetchDayQuotes returns a map that maps stock symbols to their corresponding quotes on that date.
FetchDayQuotes returns a map that maps stock symbols to their corresponding quotes on that date .