When I try to make this request, I get this results
const options = {
method: ‘GET’,
url: ‘https://freedom-finance.p.rapidapi.com/stock-prices’,
params: {
Symbol: ‘MSFT’,
StartDateInclusive: ‘2020-01-01’,
EndDateInclusive: ‘2020-04-01’,
OrderBy: ‘Ascending’
},
headers: {
‘X-RapidAPI-Key’: ‘…’,
‘X-RapidAPI-Host’: ‘freedom-finance.p.rapidapi.com’
}
};
Please note that the range is not working, the startDateInclusive is not respected and it gets all the results up to this date (2022-10-31)
{
“total”: 714,
“offset”: 0,
“results”: [
{
“date”: “2020-01-02”,
“open”: 158.779999,
“high”: 160.729996,
“low”: 158.330002,
“close”: 160.619995,
“volume”: 22622100,
“adjClose”: 156.591995
},
…
{
“date”: “2022-10-31”,
“open”: 233.759995,
“high”: 234.919998,
“low”: 231.149994,
“close”: 232.119995,
“volume”: 16538872,
“adjClose”: 232.119995
}
],
“responseStatus”: null
}
I’m guessing this is not the expected behavior, so it will be great if to know if I’m not using this API correctly or if there is a fix to be done. Thanks!
ディスカッションに参加しましょう-以下にコメントを追加してください:
It looks like it’s solved now, thanks!
Hi - you were correct, and a bug fix has been released. Please try again and let me know if you have any problems. Thanks!
thanks for your message. we will investigate and respond within 24 hours with a fix if needed, it looks like a bug but i will need to confirm.