node-yahoo-finance2 icon indicating copy to clipboard operation
node-yahoo-finance2 copied to clipboard

fundamentalsTimeSeries result with type UNKNOWN

Open shinobijs opened this issue 2 months ago • 0 comments

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,

shinobijs avatar Nov 12 '25 21:11 shinobijs