node-yahoo-finance2
node-yahoo-finance2 copied to clipboard
fundamentalsTimeSeries result with type UNKNOWN
Bug Report
fundamentalsTimeSeries returns data with type UNKNOWN and schema validation error.
Describe the bug
Type UNKNOWN is returned for module balance-sheet which should return type BALANCE_SHEET.
Minimal Reproduction
await yahoo.fundamentalsTimeSeries(
'SOF-B.ST',
{
type: 'annual',
module: 'balance-sheet',
period1: '2024-01-01',
})
Environment
Node: v22.20.0
Additional Context
{
instancePath: '/0',
schemaPath: '#/definitions/FundamentalsTimeSeriesResults/items',
message: 'should match some schema in anyOf',
data: {
TYPE: 'UNKNOWN',
date: 1735603200,
accumulatedDepreciation: -23587000,
periodType: '12M',
otherProperties: 26990000,