Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yahoo-finance2

gadicc58.7kMIT2.13.3TypeScript support: included

JS API for Yahoo Finance

yahoo, finance, financial, data, stock, price, quote, historical, eod, end-of-day, client, library

readme

node-yahoo-finance2

Community API for Yahoo-Finance.

Copyright (c) 2021 by Gadi Cohen and Pilwon Huh. MIT licensed.

npm CircleCI coverage semantic-release TypeScript MIT License

Supports Node 18.20.4 and up (tests are run against 18.20.4), e.g. all active LTS versions.

Stable release - supersedes the ubiquitous node-yahoo-finance v1. NB: The API has changed, see UPGRADING for more information.

Live Demo on CodeSandbox (Updated 2024-06-17; NextJS with both RSC and Hook-Relay examples)

Unofficial API

This project is neither created nor endorsed by Yahoo Inc. Yahoo does not provide any official API to developers, nor makes any guarantees regarding service availability or API consistency. In practice however, the open source community has kept this project (and it's predecessor) working well since 2013.

Nevertheless, we make no guarantees and you use this package at your own risk. The developers (and obviously Yahoo) cannot be held responsible for any losses you may incur as a result of using this service. Use of this package is considered acknowledgement and acceptance of these terms and of its license.

Quickstart

CLI (Command line interface)

$ npx yahoo-finance2 --help
$ npx yahoo-finance2 search AAPL
$ npx yahoo-finance2 quoteSummary AAPL
$ npx yahoo-finance2 quoteSummary AAPL '{"modules":["assetProfile", "secFilings"]}'

# or install it
$ npm install -g yahoo-finance2
$ yahoo-finance search AAPL '{ "someOption": true }'

Importing

// import syntax (recommended)
import yahooFinance from 'yahoo-finance2';

// require syntax (if your code base does not support imports)
const yahooFinance = require('yahoo-finance2').default; // NOTE the .default

const results = await yahooFinance.search('AAPL');
const results = await yahooFinance.search('AAPL', { someOption: true, etc });

Available modules: ~autoc~, chart, historical, quote, quoteSummary (submodules: assetProfile, balanceSheetHistory, balanceSheetHistoryQuarterly, calendarEvents, cashflowStatementHistory, cashflowStatementHistoryQuarterly, defaultKeyStatistics, earnings, earningsHistory, earningsTrend, financialData, fundOwnership, fundPerformance, fundProfile, incomeStatementHistory, incomeStatementHistoryQuarterly, indexTrend, industryTrend, insiderHolders, insiderTransactions, institutionOwnership, majorDirectHolders, majorHoldersBreakdown, netSharePurchaseActivity, price, quoteType, recommendationTrend, secFilings, sectorTrend, summaryDetail, summaryProfile, symbol, topHoldings, upgradeDowngradeHistory), search, recommendationsBySymbol, trendingSymbols, options, insights, dailyGainers, with more coming soon.

Extras: quoteCombine. Utils: setGlobalConfig.

See the Full Documentation.

Particularly, make sure to read the notes there on ERROR HANDLING. Be aware that if a stock gets delisted, Yahoo removes all related data, including historical (and chart) data from periods before the delisting occurred (i.e. queries that worked before will start failing, and there is no way to retrieve this data again).

Even Quicker Start - Stock Price

const quote = await yahooFinance.quote('AAPL');
const { regularMarketPrice as price, currency } = quote;

NB: CommonJS / ES modules

This package is shipped as both an ES Module and a CommonJS module. Node will automatically load the ES module if:

  • Your package.json contains a { type: module } entry
  • You're running at least Node 12 (maybe with --experimental-module flag).
  • You import the module (require function does not exist in ES modules)

otherwise the traditional CommonJS module will be loaded. No flags are necessary for Node 12.7.0+ and Node 13.2.0+, but for older versions, you need to add the --experimental-module flag).

ES Modules are "relatively" new. They got a big boost in April 2021 when Node 10, which did not support them, reached end-of-life. However, support varies by build tool and configuration, and there are some edge cases which can be tricky. Please open an issue if you run into any trouble.

require (CommonJS)

If you use load the library with require, make sure to add .default:

const yahooFinance = require('yahoo-finance2').default; // NOTE the .default

(Optional) TypeScript Love

Working with yahoo-finance2 is a joy if you're using TypeScript (but you don't have to), with type checking and auto completion:

Types Animation

Try it yourself on our Live CodeSandbox.

Using in the Browser (TL;DR; possible but unsupported)

This project is primarily developed to be used server-side in node. Nevertheless, due to the large number on requests on this issue, we have taken care to ensure the package can be imported in the browser too.

HOWEVER: you'll run into other challenges there that we can't help you with, particularly CORS issues when trying to query Yahoo's servers in the browser from non-Yahoo origins. Since Yahoo is specifically blocking such requests, we will not help you bypass them. (One way around this is to run your own server to proxy your requests, but we won't help you with this).

Contributing

Pull Requests welcome! Read CONTRIBUTING.md and join our list of heroes:

contributor-faces

Special mention goes out to pudgereyem and PythonCreator27 who made significant contributions in the very early days of this project.

Credits

  • Massive thanks to @pilwon for the original node-yahoo-finance and for all our prior collaborations on this and other projects 🙏

changelog

2.13.3 (2024-12-21)

Bug Fixes

  • chart: validate includePrePost:false, interval:1m (fixes #812) (5ca811d)
  • fetchDevel: fix application/json detection (cc0390a)
  • fetchDevel: use std Headers methods in contentObj (#826) (46273db)
  • notices: fix typo in log: s/supress/suppress/ (fixes #845) (0e47049)

Reverts

  • Revert "chore(tests): temporarily disable getCrumb tests on CI" (6f48387)
  • Revert "chore(tests): different approach for weird CI getCrumb test issue" (d595714)

2.13.2 (2024-10-04)

Bug Fixes

  • chart: validate includePrePost:false, interval:1m (fixes #812) (b272c48)

Reverts

  • Revert "chore(tests): temporarily disable getCrumb tests on CI" (a234d60)
  • Revert "chore(tests): different approach for weird CI getCrumb test issue" (d0fea98)

2.13.1 (2024-10-02)

Bug Fixes

  • quoteSummary: re-add missing modules except insiderHolders (#797) (d862806)

2.13.0 (2024-09-29)

Bug Fixes

  • options: re-export missing types (#797) (e96395f)
  • setGlobalConfig: cookieJar prop should be optional (fixes #809) (7e524fc)

Features

2.12.5 (2024-09-28)

Bug Fixes

  • deps: update dependency tough-cookie to v4.1.4 (a5f8ed4)
  • json: keep assertions; use "with"; up min node ver (closes #800) (45cc33a)
  • json: revert keepImportAssertions=false (just for swc/jest) (0a3e98d)
  • validation: only log error part of errror (w/o schema, value) (859a0fb)

2.12.4 (2024-09-20)

Bug Fixes

  • historical: correctly map adjclose -> adjClose (#795) (d8851ec)
  • historical: return coerced values (#797) (386bf82)

2.12.3 (2024-09-18)

Bug Fixes

  • chart,options: fix types after last commit (#797) (27150e6)
  • historical: add missing types, colocate types with schema (#797) (5ca349e)
  • types: use StaticDecode vs Static to infer types (#797) (696baf6)

2.12.2 (2024-09-17)

Bug Fixes

  • moduleExec: actually return coerced values :) (94430d8)
  • modules: re-export types, conform to *Schema convention (#795) (4269556)

2.12.1 (2024-09-16)

Bug Fixes

  • historical: re-add / adapt old null row filter (63c4498)
  • options: fix default log.warn() to use console.warn not .error (4693dbb)

2.12.0 (2024-09-16)

Bug Fixes

  • chart: fix and improve non-Date handling code for periods (f1106c2)
  • circleci,readme: use node:18.0.0 for tests, make clear in readme (8365a90)
  • historical: map requests to chart() with deprec notice (#795) (c212df9)
  • imports: add import assertions required in node since 17.5.0. (7d0deea)
  • imports: specify ".js" on local imports for full ESM compat (46ee6c1)
  • index: remove erroneously removed moduleExec import (fe1a493)
  • notices: historical() note, type improvement, onceOnly text (c131e5c)
  • pkg/scripts: still need prepublishOnly to run build (4da1273)
  • pkg: add babel importAttributes plugin (e41f65d)
  • pkg: drop ts-jest, use @swc-jest, { keepImportAssertions: false } (a0e2847)
  • pkg: use swc, remove babel (faster, fixes import assertions) (110d28d)
  • tests-modules: use swc here too (c7e849c)

Features

  • notices: notices lib, refactor, use for "yahooSurvey" (#783) (b4c016b)

2.11.3 (2024-05-30)

Bug Fixes

  • getCrumb: ignore (but log) unexpected redirect (fixes #777) (2e4c0b4)

2.11.2 (2024-04-17)

Bug Fixes

  • getCrumb: use getcrumb endpoint to get the crumb (fixes #764) (db0151c)

2.11.1 (2024-04-05)

Bug Fixes

  • cookieJar: re-export ExtendedCJ from package root (fixes #761) (5f99351)

2.11.0 (2024-03-20)

Bug Fixes

  • pkg: commit yarn.lock with @types/har-format (b1270b5)

Features

  • fundamentalsTimeSeries: improved financial reports (#753) (188860a)

2.10.0 (2024-03-09)

Features

  • module: Add new fundamentals time series module (#748) (1681d33)

2.9.2 (2024-03-07)

Bug Fixes

  • quoteSummary: stdDev ? in FPerfRiskOverviewStatsRow (fix #744) (fc1430e)

2.9.1 (2024-02-05)

Bug Fixes

  • options: add { needsCrumb: true } (fixes #736) (79e33d9)
  • quoteSummary: allow totalOtherIncomeExpenseNet null (fixes #734) (1d0d48e)
  • quoteSummary: moduleName s/search/quoteSummary/ fix (bf58aa8)

2.9.0 (2023-11-20)

Bug Fixes

  • deps: update dependency @types/tough-cookie to v4.0.5 (ffb5108)

Features

  • quote: add beta to quote field option (#713) (be20a87)

2.8.1 (2023-10-23)

Bug Fixes

  • assetProfile: Add sectorKey and industryKey (#689) (3104739)
  • deps: update dependency @types/tough-cookie to v4.0.4 (120574c)

2.8.0 (2023-09-28)

Features

2.7.1 (2023-09-27)

Bug Fixes

  • deps: update dependency node-fetch to v2.7.0 (26d53e3)
  • validation: updated upgradeDowngradeHistory Grades (#684) (fe6de09)

2.7.0 (2023-09-18)

Bug Fixes

  • chart: belatedly promote to stable ("chart" vs "_chart") (28ba479)
  • deps: update dependency @types/tough-cookie to v4.0.3 (#673) (625acc0)
  • getCrumb: rely on cookie expiry time exclusively (178e122)
  • getCrumb: store crumb in cookie store too (#670) (81031e8)
  • getCrumb: use logger.debug vs console.log (bb1c06c)
  • schema: options / cookieJar (#670) (4d658bf)
  • schema: options / cookieJar (#670) (f65f69c)
  • schema: skip function types (not in js-schema), related fixes (b772399)
  • schema: update (rename _chart to chart) (fd30770)

Features

  • cli: add guidance to use CLI with submodules (#626) (7d08bb1)
  • cli: use a file-cookie-store (#670) (e2239b4)
  • Customisable logging (8ed81ae)
  • getCrumb: ability to specify custom cookie jar / store (#670) (6390a80)
  • getCrumb: ability to specify custom cookie jar / store (#670) (b298844)

2.6.0 (2023-09-15)

Bug Fixes

  • chart: belatedly promote to stable ("chart" vs "_chart") (b1c8c67)
  • deps: update dependency @types/tough-cookie to v4.0.3 (#673) (321607c)
  • schema: update (rename _chart to chart) (77a96d2)

Features

  • cli: add guidance to use CLI with submodules (#626) (c2c848f)

2.5.0 (2023-09-07)

Features

  • dailyGainers: add new dailyGainers module (#666) (5085014)

2.4.7 (2023-09-06)

Bug Fixes

  • insights: Insights and SEC Filings validation errors (#665) (23f2789), closes #663 #664
  • insights: missing/optional fields/enums, tests (fixes #663) (3c02753)
  • quoteSummary: add Grade "ConvictionBuy"; tests foR ARMK (#664) (c0efc07)

2.4.6 (2023-09-04)

Bug Fixes

  • chart/validation: allow null results in some fields (#662) (83233fb)
  • chart/validation: commit updated schema and http fixture (#662) (e99cb18)

2.4.5 (2023-09-03)

Bug Fixes

  • quote: schema dividend{Rate,Yield}, 52wkChngPercent (fixes #636) (4e6ed20)

2.4.4 (2023-08-12)

Bug Fixes

  • csv2json,historical: dividends/csv with no data (fixes #658) (13dcc64)
  • deps: update dependency node-fetch to v2.6.12 (9f2352b)
  • deps: update dependency tough-cookie to v4.1.3 (8ea89d2)
  • fixDevel: send real request with full URL with crumb (e3b2409)
  • quoteSummary: schema: optional {stock,bond}Position (fixes #639) (cc669b8)
  • schema: quoteSummary, secFilings types (fixes #646) (e92702e)
  • search: also "Futures" (in addition to "Future") for typeDisp (d745b67)
  • validateAndCoerceTypes: add a node for #help-fix doc (662760d)
  • validations: quoteSummary BMW.DE (fixes #638) (d943e97)

2.4.3 (2023-07-24)

Bug Fixes

  • deps: update dependency node-fetch to v2.6.12 (adbd93f)
  • deps: update dependency tough-cookie to v4.1.3 (aa4d087)
  • fixDevel: send real request with full URL with crumb (2911f36)
  • quoteSummary: schema: optional {stock,bond}Position (fixes #639) (cd63b48)

2.4.2 (2023-07-14)

Bug Fixes

  • quoteSummary: "needsCrump" since a few days ago? fixes #633. (d05a764)

2.4.1 (2023-05-08)

Bug Fixes

  • getCrumb: handle consent when required i.e. in EU (#637) (a4f90f1)

2.4.0 (2023-05-08)

Bug Fixes

  • crumb: needsCrumb option, and in quote() only (cf92258)
  • crumb: send accept header; cleanup, type fixes (c21f025)
  • crumb: use cookie expire time for crumb cache (c943a65)
  • deps: update dependency node-fetch to v2.6.9 (b85629a)

Features

  • crumb: initial work... cookieJar, getCrumb, use cookies / crumb (32f3042)

2.3.10 (2022-11-16)

Bug Fixes

  • options: currency, percentChange optional e.g. PYPL (fixes #561) (3c99145)

2.3.9 (2022-11-16)

Bug Fixes

  • options,quote: EBAY "ask", "cryptoTradeable" fields (fixes #560) (b2c4b5a)

2.3.8 (2022-11-16)

Bug Fixes

  • historical: typescript fix for backwards compatibility (2533dab)
  • historical: update schema for last commit :`) (7ddf93c)

2.3.7 (2022-11-14)

Bug Fixes

  • historical: validation for events {dividends,split} (fixes #557) (e83ede6)

2.3.6 (2022-08-13)

Bug Fixes

  • quoteSummary: more incomeStatement nulls; THYAO.IS; fixes #517 (46cb9eb)

2.3.5 (2022-08-13)

Bug Fixes

  • quoteSummary: null operatingIncome (some .IS stocks; #517) (1b00e06)
  • search: add types for new fields (714d891)

2.3.4 (2022-06-29)

Bug Fixes

  • quoteSummary: 10-QA; pctChange; coinMarketCapLink (fixes #500) (a1119a8)
  • validation: 3rd hint help text for "bad" symbols (closes #465) (9e84387)
  • validation: show pkg name and version in help text (f27b901)

2.3.3 (2022-05-02)

Bug Fixes

  • schema for APS.AX in insights,quoteSummary,recommends (#461) (e0cf583)

2.3.2 (2022-04-27)

Bug Fixes

  • quote,quoteSummary: support FUTURE type + tests (closes #449) (56b664b)

2.3.1 (2022-04-13)

Bug Fixes

  • quote: make customPriceAlertConfidence optional (#248,#445) (1863fbf)
  • quote: optional "openInterest" prop; schema + tests (#248) (d8c7808)
  • quote: optional "typeDisp" prop (#248) (cf7703a)

2.3.0 (2022-03-06)

Bug Fixes

  • insights: fix schema for more recent yahoo results (c71a400)
  • validation: Date, allow ISODate without ms precision too (82ba1cb)

Features

  • yahoo: Configurable YF_QUERY_HOST in URLs (#109) (716c0f1)

2.2.0 (2022-03-03)

Features

2.1.9 (2022-02-27)

Bug Fixes

  • quoteSummary: add twitter? to {asset,summary}Profile (fixes #418) (1c7c1cb)

2.1.8 (2022-02-26)

Bug Fixes

  • quote: don't pulle Quote with QuoteNone (fixes #417) (5178c78)

2.1.7 (2022-02-26)

Bug Fixes

  • quote/cryptocurrency: more optionals; ZRC-USD test (fixes #403) (cffe7a6)

2.1.6 (2022-02-24)

Bug Fixes

  • quote: allow a customPriceAlertConfidence property (fixes #412) (84b7cf7)
  • quote: return undefined for quoteType "NONE" (fixes #381) (e067a81)

2.1.5 (2022-02-23)

Bug Fixes

  • autoc: throw error on use (fixes #337) (99846ed)
  • deps: bump ajv 8.9.0 -> 8.10.0, reconstruct yarn.lock (#391) (4370b44)
  • historical,chart: throw if period1===period2 (closes #407) (e120e55)
  • moduleExec: support assertSymbol field (closes #406) (1a05f59)

2.1.4 (2022-02-17)

Bug Fixes

  • update SearchResult to include new properties (f64de37)

2.1.3 (2022-02-16)

Bug Fixes

  • historical: fix transform code for String date (1e4c788)
  • options: queryOpt date now accepts Date/string too (fixes #287) (203b6b8)

Reverts

  • Revert "chore(tests): don't use console.dir in tests" (0480083)
  • Revert "chore(tests): more debugging to figure out why tests stuck on CI" (ba2ed67)

2.1.2 (2022-01-29)

Bug Fixes

  • pkg: bump ajv and ajv-formats (3dac116)

2.1.1 (2022-01-15)

Bug Fixes

  • setGlobalConfig: add to index; minor improvements (#376) (464f26f)

2.1.0 (2021-12-21)

Bug Fixes

  • chart: more query tests, intervals, edge cases (#336) (6b95d7e)
  • package: have semantic-release recognize version branches (a89d895)
  • quote: equity: allow underlyingSymbol. LDN.MI test (#363) (817410b)

Features

2.0.1 (2021-11-13)

Bug Fixes

  • quote: allow optional pageViewGrowthWeekly (fixes #326) (e425cd5)

2.0.0 (2021-10-27)

Bug Fixes

  • search: allow exchDisp? type (80236e5)
  • validation: correctly handle null dates + coverage (#264) (68378d5)

Features

  • validation: add support for "date|null" type (#264) (52ea8e4)

BREAKING CHANGES

  • use date instead of number for various fields. The original use of number was unintentional. This commit fixes that. Unfortunately the type change is a breaking change.

  • docs: add insiderTransaction example

  • docs: add insiderHolders example
  • docs: add netSharePurchaseActivity example
  • docs: add institutionOwnership example
  • docs: add cashflowStatementHistoryQuarterly example
  • docs: add fundOwnership example
  • docs: add incomeStatementHistory example
  • docs: add incomeStatementHistoryQuarterly example
  • docs: add indexTrend example
  • docs: add industryTrend example
  • docs: add majorDirectHolders example
  • docs: add majorHoldersBreakdown example
  • docs: add quoteType example
  • docs: add recommendationTrend example
  • docs: add sectorTrend example
  • docs: add fundPerformance example
  • docs: add fundProfile example
  • docs: add missing symbols in example request
  • docs: correct example response
  • docs: correct defaultKeyStatistics example
  • docs: align date format

1.14.6 (2021-10-13)

Bug Fixes

  • pkg/esm: target es2020->es2019: workaround old toolchains (#279) (ab63b27)

1.14.5 (2021-09-24)

Bug Fixes

  • quoteSummary: misc interface fixes (fixes #295) (5657df7)

1.14.4 (2021-08-12)

Bug Fixes

  • quoteSummary: sellingGeneralAdministrative (fixes #258) (c01fe74)
  • search: add support for screener fields (#255) (2b23ccb)

1.14.3 (2021-08-08)

Bug Fixes

  • insights: support optional "upsell" field (fixes #253) (5b7eadb)

1.14.2 (2021-07-28)

Bug Fixes

  • quote: add { quoteType: "INDEX" } QuoteIndex iface (fixes #248) (6aa0630)
  • quote: add missing { quoteType: "OPTION" } to QuoteOption iface (95e64b1)

1.14.1 (2021-07-21)

Bug Fixes

  • pkg: output cjs with target es2015 for older nodes (f61fa46)

1.14.0 (2021-06-19)

Features

  • quote: allow quote of specific options (#213) (1348515)

1.13.1 (2021-06-14)

Bug Fixes

  • csv2json: recognize "null" -> null (d077680)
  • historical: skip null rows (e98e51e)

1.13.0 (2021-06-06)

Features

  • errors: expose in yf.errors; improve docs (#202) (a3a7da6)

1.12.1 (2021-06-03)

Bug Fixes

  • index: add erroneously removed historical; alphabeticalize (#200) (f750402)

1.12.0 (2021-06-02)

Bug Fixes

  • quoteSummary: allow price=null in price,quoteType (fixes #197) (990dd4a)

Features

  • quote: support { "return": "array"* | "map" | "object" } param (#151) (a2d8796)

1.11.0 (2021-06-01)

Bug Fixes

  • deps: update dependency ajv to ^8.1.0 (1769641)
  • quoteCombine: resolve undefined for missing symbols (#150) (f8c25e3)
  • testing: specify jest.js path, not bin (#170) (6772c8e)

Features

  • options: accept date option (#186) (11b8a72)
  • add (friendly) warning when used in the browser (3c4c5a0), closes #153
  • add insights module (#169) (4603232)
  • concurrency: ability to limit max simultaneous requests (#76) (3424d44)
  • modules: build (true) esm, (interop) cjs modules; tests/readme (#144) (2182f6c)
  • setGlobalConfig: add setGlobalConfig function (#133) (43ebaa4)

1.10.4 (2021-04-08)

Bug Fixes

  • validation: add a few new properties and mark a few properties optional (65d4486)

1.10.3 (2021-04-03)

Bug Fixes

  • autoc: return typescript type AutocResultSet not AutocResult (#110) (b863864)

1.10.2 (2021-04-03)

Bug Fixes

  • validation: add properties to quote module response (4c6ef24)
  • validation: add tests for SIMP and fix validation for them (96891fd)

1.10.1 (2021-03-29)

Bug Fixes

  • quote: {regular,pre}MarketTime is Date (like postMT) (524fed3)

1.10.0 (2021-03-28)

Features

  • optionsModule: Add options module (#97) (7ba6294)

1.9.1 (2021-03-26)

Bug Fixes

  • quote: allow CURRENCY type (92bd2e8)
  • quoteCombine: error handling + full coverage (c6f0c2b)

1.9.0 (2021-03-11)

Bug Fixes

  • index: add quoteCombine :) (aeeef49)

Features

  • quote: allow ?fields= argument, see docs. (b597954)
  • quoteCombine: debounce and combine multiple quote calls (95bf404)

1.8.3 (2021-03-04)

Bug Fixes

  • quote: add cryptocurrency interface (53044d3)
  • quoteSummary: add cryptocurrency types (0523d6d)

1.8.2 (2021-02-22)

Bug Fixes

  • ci: empty-commit to trigger ci publish after token change (f678c21)
  • validation: load process only when defined during validation logging (#50) (2f97923)
  • validation: more optionality, SQYFuture type, more tests (4377fdf)

1.8.1 (2021-02-19)

Bug Fixes

  • ci: empty-commit to trigger ci publish after token change (947be37)

1.8.0 (2021-02-19)

Bug Fixes

  • search: add CURRENCY and CRYPTOCURRENCY types, EUR search test (5ac971a)
  • validation: make a few quoteSummary properties optional (fbe9310)
  • validation: make a few quoteSummary properties optional (a6535ee)

Features

  • modules: add a new module (trendingSymbols) (4f486f7)

1.7.2 (2021-02-17)

Bug Fixes

  • browser: mv fetchDevel to _env, fixes issues w/ ng build (#50) (7528580)
  • quote: add additional properties (4ab73c1)
  • quote: make certain properties optional (1881bcb)
  • quote: more optional properties (#51) (631ed45)
  • quoteSummary: more optionality, enum types, to fix tests (#51) (bc47bdf)
  • types: more optionality in quoteSummary,search for newer stocks (b230635)
  • validate: stricter nulls, number|null type, better errors (#51) (93dafc6)
  • QuoteSummary & Search validation (28f0487)

1.7.1 (2021-02-12)

Bug Fixes

  • search: ETF/Fund types, ?shortname, more tests (#31) (28a9b03)

1.7.0 (2021-02-10)

Bug Fixes

  • index: uhhhh s/options/opts/ like it's called everywhere else (4492993)
  • moduleExec: pass correct object to validation (#27) (8b0f9c7)
  • modules: change overloading order specificy (fixes #21) (1806e61)
  • quote: extend marketState property (0c36a60)
  • quote: interface fixes, 10am UTC tests (#35) (1c256c7)

Features

  • new module recommendationsBySymbol (#28) (b467acb)

1.6.0 (2021-02-08)

Features

  • quote: add quote module (e0f8d35)

1.5.2 (2021-02-06)

Bug Fixes

  • modules: don't log errors when {validateResult:false} (#16) (29f23dc)

1.5.1 (2021-02-06)

Bug Fixes

  • quoteSummary/iface: additional fixes for mutual fund types (#20) (4d19692)
  • quoteSummary/iface: more optional fields, new Fund types (#20) (15bb4a1)
  • validate: init ajv with { allErrors: true } (9793718)

1.5.0 (2021-02-05)

Bug Fixes

  • search: change longname to be an optional property (9b8128d)
  • validate: honor _opts: { validation: { logErrors: true }} (1e0ebae)
  • validate: show errors by default (ab87ad3)

Features

  • modules: allow { validateResult: false } to not throw (#16) (dc199b5)

1.4.2 (2021-02-04)

Bug Fixes

  • csv2json: throw on invalid input. add tests (9a4d31a)
  • readme: show correct usage instructions (and update on npm) (03afec8)

1.4.1 (2021-02-03)

Bug Fixes

  • quoteSummary: iface fixes, TopHoldings (904934a)
  • quoteSummary: more optional props, more tests (3fa958c)
  • quoteSummary: remove non-existant "symbol" submodule (eae40e2)
  • quoteSummary/assetProfile: make *Risk fields optional (08561c7)
  • search: add SearchQuoteYahooOption type (cf8dbdb)
  • search: restore default query options (e0169d1)
  • validate: edge case, Date object w/ invalid raw field; add tests (a98d306)
  • validate: use new ajv.addKeyword syntax (f00a14e)

1.4.0 (2021-02-02)

Features

  • env: multiple environments, browser entry point (e18aa67)

1.3.1 (2021-02-01)

Bug Fixes

  • quoteSummary: rename conflicting typedefs (f824f88)

1.3.0 (2021-02-01)

Bug Fixes

  • index: default export (ae50993)
  • quoteSummary: s/EndDate/DateObj, and have DateObj json -> Date (#7) (d5f834f)
  • quoteSummary: schema updates and transform fixes (0930f33)

Features

  • quoteSummary: all submodules, using validation type coercion (3970132)
  • quoteSummary/assetProfile: complete (#7) (e95dbc8)

1.2.0 (2021-01-30)

Bug Fixes

  • errors: tsc needs static errors (d2c734e)
  • fetch: s/throw new error/throw error/ (084990d)

Features

  • modules: better runtime option checking (dffa79a)

1.1.1 (2021-01-29)

Bug Fixes

  • package: generateSchema -> yarn generateSchema (896b2cd)

1.1.0 (2021-01-29)

Bug Fixes

  • autoc/search: do typescript arrays properly, nonYahooQuotes (28a2fd2)
  • fetch: prefer JSON errors where possible (2b14f15)
  • historical: add missing 'high', improve types (91be9dc)
  • index: revert back to non-class re-export approach (3954244)
  • search: transform dates (52b585c)

Features

  • bin: use console.dir with colors on tty, JSON otherwise (6db79e5)
  • historical: module and supporting csv code (5b6eac4)
  • quoteSummary: more work. package: add dot-prop (edc1554)

1.0.3 (2021-01-24)

Bug Fixes

  • package: prepublish, typescript defs, exports; mv index; (8a40888)

1.0.2 (2021-01-24)

Bug Fixes

  • semantic: create changelog? (fb5f6c9)