Yahoo Finance

FREEMIUM
By Api Dojo | Updated 8 hours ago | Finance
Popularity

9.9 / 10

Latency

1,671ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Parameters "period1" and "period2" in endpoint "stock/v2/get-chart"

Rapid account: Ermakovpavel 231997
ermakovpavel231997
5 years ago

I created a request “https://apidojo-yahoo-finance-v1.p.rapidapi.com/stock/v2/get-chart?period2=1565287200&period1=1565276400&interval=1m&region=US&symbol=AAPL&lang=en&range=1d”. In the data response I see all results.
How to apply parameters period1 and period2 to limit the results?

Rapid account: Hendrx 68
hendrx68 Commented 5 years ago

It seems like period1 and period2 still don’t do anything, even if you pick epochs at the starts of days with the same specified range (i.e. period1 = 1564790400, period2 = 1567468800): a range of 1mo and interval of 15m. How exactly would I access a 1 month interval that doesn’t end at the current day?

Rapid account: Apidojo
apidojo Commented 5 years ago

Hello, Yahoo Finance feeds data range by days, neither by hours or minutes, I am sorry that you cannot limit the response data by hours as you love to.

Join in the discussion - add comment below:

Login / Signup to post new comments