Bugfix/fix fetching dividend and historical market data in Financial Modeling Prep service (#4416)
* Add default values * Update changelog
This commit is contained in:
parent
52081d6741
commit
6bdfd8984f
@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed an issue to get dividends in the _Financial Modeling Prep_ service
|
||||||
|
- Fixed an issue to get historical market data in the _Financial Modeling Prep_ service
|
||||||
- Fixed an issue with serving _Storybook_
|
- Fixed an issue with serving _Storybook_
|
||||||
|
|
||||||
## 2.144.0 - 2025-03-06
|
## 2.144.0 - 2025-03-06
|
||||||
|
@ -244,7 +244,7 @@ export class FinancialModelingPrepService implements DataProviderInterface {
|
|||||||
[date: string]: IDataProviderHistoricalResponse;
|
[date: string]: IDataProviderHistoricalResponse;
|
||||||
} = {};
|
} = {};
|
||||||
|
|
||||||
const { historical } = await fetch(
|
const { historical = [] } = await fetch(
|
||||||
`${this.URL}/historical-price-full/stock_dividend/${symbol}?apikey=${this.apiKey}`,
|
`${this.URL}/historical-price-full/stock_dividend/${symbol}?apikey=${this.apiKey}`,
|
||||||
{
|
{
|
||||||
signal: AbortSignal.timeout(requestTimeout)
|
signal: AbortSignal.timeout(requestTimeout)
|
||||||
@ -305,7 +305,7 @@ export class FinancialModelingPrepService implements DataProviderInterface {
|
|||||||
? addYears(currentFrom, MAX_YEARS_PER_REQUEST)
|
? addYears(currentFrom, MAX_YEARS_PER_REQUEST)
|
||||||
: to;
|
: to;
|
||||||
|
|
||||||
const { historical } = await fetch(
|
const { historical = [] } = await fetch(
|
||||||
`${this.URL}/historical-price-full/${symbol}?apikey=${this.apiKey}&from=${format(currentFrom, DATE_FORMAT)}&to=${format(currentTo, DATE_FORMAT)}`,
|
`${this.URL}/historical-price-full/${symbol}?apikey=${this.apiKey}&from=${format(currentFrom, DATE_FORMAT)}&to=${format(currentTo, DATE_FORMAT)}`,
|
||||||
{
|
{
|
||||||
signal: AbortSignal.timeout(requestTimeout)
|
signal: AbortSignal.timeout(requestTimeout)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user