xemwebe / yahoo_finance_api

Simple wrapper to yahoo! finance API to retrieve latest quotes and end-of-day quote histories
Apache License 2.0
64 stars 29 forks source link

API grammar suggests multiple ticker request/response #30

Closed gurpal2000 closed 1 year ago

gurpal2000 commented 1 year ago

Thank you for creating this API.

Just one thing. The connector has a function get_latest_quotes() ie. Plural.

Yet I only see support for a single ticker. Wouldn't the call be better as get_latest_quote() ie. singular

Incidentally are people using loops with a minute delay or so?

xemwebe commented 1 year ago

The plural is intentional. The function returns multiple quotes for a single ticker, e.g. all quotes of the most recent day or week. This justifies the plural.