Skip to content

Undocumented / incorrect error handling #21

@Richie765

Description

@Richie765

The historical function returns an empty array [] on any kind of error (network error, symbol not found, etc). While investigating I found there is an undocumented option error that can be set to true to get errors thrown.

I believe it is better to remove this option and just throw the errors so the user of the module can handle the errors the way they like.

Same applies to companyNews and yahoo-finance.historical.

If you agree I can make a PR request for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions