openqdata 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. openqdata/README.md +5 -0
  2. openqdata/__init__.py +15 -0
  3. openqdata/arbfree/README.md +5 -0
  4. openqdata/arbfree/__init__.py +9 -0
  5. openqdata/arbfree/arbfree.py +1494 -0
  6. openqdata/arbfree/sanos.py +316 -0
  7. openqdata/arbfree/sanos_tools.py +958 -0
  8. openqdata/arbfree/tridiag.py +85 -0
  9. openqdata/benchmark/README.md +5 -0
  10. openqdata/benchmark/__init__.py +4 -0
  11. openqdata/biz_calendar.py +506 -0
  12. openqdata/cli.py +91 -0
  13. openqdata/env.py +112 -0
  14. openqdata/fred/README.md +5 -0
  15. openqdata/fred/__init__.py +14 -0
  16. openqdata/fred/client.py +57 -0
  17. openqdata/fred/rates.py +162 -0
  18. openqdata/massive/README.md +5 -0
  19. openqdata/massive/__init__.py +15 -0
  20. openqdata/massive/client.py +1183 -0
  21. openqdata/massive/expiries.py +242 -0
  22. openqdata/massive/options/README.md +5 -0
  23. openqdata/massive/options/__init__.py +6 -0
  24. openqdata/massive/options/contracts.py +610 -0
  25. openqdata/massive/processing.py +447 -0
  26. openqdata/massive/testing/README.md +5 -0
  27. openqdata/massive/testing/__init__.py +8 -0
  28. openqdata/massive/testing/generate.py +61 -0
  29. openqdata/massive/testing/scope.py +8 -0
  30. openqdata/massive/tickers/README.md +5 -0
  31. openqdata/massive/tickers/__init__.py +5 -0
  32. openqdata/massive/tickers/basics.py +66 -0
  33. openqdata/massive/tickers/data.py +362 -0
  34. openqdata/massive/tickers/filtered_history.py +260 -0
  35. openqdata/massive/trade_conds.py +324 -0
  36. openqdata/models/README.md +5 -0
  37. openqdata/models/__init__.py +4 -0
  38. openqdata/pool.py +34 -0
  39. openqdata/tickers/README.md +5 -0
  40. openqdata/tickers/__init__.py +13 -0
  41. openqdata/tickers/ticker_calendar.py +370 -0
  42. openqdata/utils/README.md +3 -0
  43. openqdata/utils/__init__.py +35 -0
  44. openqdata/utils/cvxpy.py +47 -0
  45. openqdata/utils/pd.py +125 -0
  46. openqdata/utils/pl.py +114 -0
  47. openqdata/vixdata/README.md +5 -0
  48. openqdata/vixdata/__init__.py +6 -0
  49. openqdata/vixdata/cboe.py +119 -0
  50. openqdata/vixdata/client.py +44 -0
  51. openqdata/vixdata/formula.py +132 -0
  52. openqdata/widb/README.md +5 -0
  53. openqdata/widb/__init__.py +25 -0
  54. openqdata/widb/arbfree.py +581 -0
  55. openqdata/widb/bad.py +69 -0
  56. openqdata/widb/client.py +517 -0
  57. openqdata/widb/connection.py +72 -0
  58. openqdata/widb/day.py +1098 -0
  59. openqdata/widb/fitstats.py +328 -0
  60. openqdata/widb/options_filter.py +338 -0
  61. openqdata/widb/sanos.py +96 -0
  62. openqdata/widb/testing/README.md +5 -0
  63. openqdata/widb/testing/__init__.py +0 -0
  64. openqdata/widb/testing/generate.py +45 -0
  65. openqdata/widb/testing/scope.py +8 -0
  66. openqdata/widb/timeseries.py +434 -0
  67. openqdata/yahoo/README.md +5 -0
  68. openqdata/yahoo/__init__.py +8 -0
  69. openqdata/yahoo/client.py +229 -0
  70. openqdata-0.3.0.dist-info/METADATA +103 -0
  71. openqdata-0.3.0.dist-info/RECORD +75 -0
  72. openqdata-0.3.0.dist-info/WHEEL +5 -0
  73. openqdata-0.3.0.dist-info/licenses/LICENSE +131 -0
  74. openqdata-0.3.0.dist-info/licenses/NOTICE +1 -0
  75. openqdata-0.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,229 @@
1
+ """
2
+ Yahoo finance
3
+ """
4
+
5
+ from openqdata import env, SubDir, Context, version#NOQA
6
+ from openqdata.biz_calendar import to_date
7
+ from datetime import date, timedelta
8
+ import yfinance as yf
9
+ import polars as pl
10
+ from cdxcore.util import fmt_date, fmt_list
11
+ from cdxcore.err import verify
12
+ import pandas as pd
13
+ from dataclasses import dataclass
14
+ import numpy as np
15
+ import time as time
16
+
17
+ _yfinance_locations = env.locations(
18
+ "yfinance",
19
+ fmt_raw=SubDir.PICKLE,
20
+ fmt_processed=SubDir.PANDAS_PARQUET,
21
+
22
+ )
23
+ _cache = _yfinance_locations.raw("fetch", fmt=SubDir.PANDAS_PARQUET)
24
+ _cache_polars = _yfinance_locations.raw("fetch", fmt=SubDir.POLARS_PARQUET)
25
+
26
+
27
+ @dataclass(frozen=True)
28
+ class YFConnectionConfig:
29
+ """ Configuration for managing yfinance/yaoo connectivity """
30
+ max_retries : int = 5
31
+ timeout : float = 1.
32
+
33
+ def __post_init__(self):
34
+ verify( self.max_retries >= 0, "max_retries must be non-negative" )
35
+ verify( self.timeout > 0., "timeout must be positive" )
36
+
37
+ class DataError(Exception):
38
+ """ Exception raised when data retrieved from yahoo is inconsistent or insufficient. """
39
+ def __init__(self, message: str, **context):
40
+ super().__init__(message)
41
+ self.context = context
42
+
43
+ @version("0.1")
44
+ class YFClient(object):
45
+ """
46
+ Yahoo Finance Client
47
+ """
48
+
49
+ locations = _yfinance_locations
50
+
51
+ def __init__(self):
52
+ pass
53
+
54
+ def validate_status(self):
55
+ """ Check that I am not in test mode """
56
+ verify( not env.test_mode, "Attempted to connect to Yahoo Finance in test mode. Set OQ_DATA_TEST_MODE=0 to enable connections." )
57
+
58
+ NO_EARNINGS_TYPES = {
59
+ "ETF",
60
+ "MUTUALFUND",
61
+ "INDEX",
62
+ "CRYPTOCURRENCY",
63
+ "CURRENCY",
64
+ "FUTURE",
65
+ "OPTION",
66
+ }
67
+ """ Instrument types which do not have earnings """
68
+
69
+ SCHEMA_HAS_EARNINGS = {
70
+ "date": pl.Date,
71
+ "is_earnings": pl.Boolean,
72
+ }
73
+ """ Schema for the :class:`pandas.DataFrame` returned by :func:`has_earnings` """
74
+
75
+ @_cache_polars.cache(
76
+ "0.2",
77
+ uid=lambda ticker, start, end : f"has_earnings/{ticker}/{fmt_date(start)}_{fmt_date(end)}",
78
+ exclude_args=['self']) # 'self' is excluded fromm the arguments as it does not affect the output.
79
+ def has_earnings(self, ticker: str, start: date, end: date) -> pl.DataFrame:
80
+ """Use yfinance to get earnings dates and ex-dividend dates for a ticker."""
81
+ self.validate_status()
82
+ t = yf.Ticker(ticker)
83
+
84
+ # find quote
85
+ qt = None
86
+ try:
87
+ qt = (t.fast_info or {}).get("quoteType")
88
+ except Exception:
89
+ qt = (t.info or {}).get("quoteType", None)
90
+ qt = str(qt).upper() if qt is not None else None
91
+
92
+ if qt in self.NO_EARNINGS_TYPES:
93
+ return pl.DataFrame(schema=self.SCHEMA_HAS_EARNINGS)
94
+
95
+ # Yahoo caps each request at 100 rows. Page until the requested history
96
+ # is covered or a page has fewer than 100 non-null announcement dates.
97
+ batch_size, offset = 100, 0
98
+ earnings_dates = set()
99
+ while True:
100
+ page = t.get_earnings_dates(limit=batch_size, offset=offset)
101
+ if page is None or page.empty:
102
+ break
103
+ page_dates = [value.date() for value in page.index if pd.notna(value)]
104
+ earnings_dates.update(value for value in page_dates if start <= value <= end)
105
+ if len(page_dates) < batch_size or min(page_dates) <= start:
106
+ break
107
+ offset += batch_size
108
+ # yfinance's per-Ticker earnings cache keys by limit, ignoring offset.
109
+ t = yf.Ticker(ticker)
110
+ earnings_dates = sorted(earnings_dates)
111
+ df = pl.DataFrame(
112
+ dict(
113
+ date=pl.Series(earnings_dates, dtype=pl.Date),
114
+ is_earnings=pl.Series([True] * len(earnings_dates), dtype=pl.Boolean),
115
+ ),
116
+ infer_schema_length=None
117
+ )
118
+ df = df.sort("date")
119
+ assert set(df.columns) == set(self.SCHEMA_HAS_EARNINGS), f"Internal error retrieving earnings for {ticker} between {fmt_date(start)} and {fmt_date(end)}: expected columns {set(self.SCHEMA_HAS_EARNINGS)} but got {set(df.columns)}. Please update code. Ref: https://massive.com/docs/rest/stocks/corporate-actions/earnings"
120
+ return df
121
+
122
+ PRICE_FIELDS = {'Close', 'High', 'Low', 'Open', 'Volume', 'Dividends', 'Stock Splits'}
123
+ """ Fields returned by :func:`prices` and expected to be present in the data frame returned by yahoo. """
124
+
125
+ @_cache(fmt=SubDir.PANDAS_PARQUET).cache(
126
+ "0.2",
127
+ uid=lambda ticker, start, end: f"bins/{ticker}/{fmt_date(start)}_{fmt_date(end)}",
128
+ exclude_args=['self']) # 'self' is excluded fromm the arguments as it does not affect the output.
129
+ def prices( self, ticker: str, start: date, end: date, *,
130
+ yfconnection_config : YFConnectionConfig = YFConnectionConfig() ) -> pd.DataFrame:
131
+ """
132
+ Downloads one ticker from yahoo using `yfinance <https://ranaroussi.github.io/yfinance/index.html>`__
133
+ and applies some basic consistency checks.
134
+
135
+ The function returns a pandas data frame with the fields ``Close``, ``High``, ``Low``, ``Open``, ``Volume``, ``Dividends`` and ``Stock Splits``,
136
+ see also :attr:`PRICE_FIELDS`. The index of the data frame are the historic dates. All rows with NaNs are removed.
137
+
138
+ Checks performed:
139
+
140
+ * All required fields are present.
141
+ * Close, Low, High, Open are positive
142
+ * High > Low (please note yahoo data does not include Open/Close in Low/High)
143
+
144
+ Parameters
145
+ ----------
146
+ ticker : str
147
+ Ticker such as ``AAPL``.
148
+
149
+ start : :class:`datetime.date`
150
+ Start of the period.
151
+
152
+ end : :class:`datetime.date`
153
+ End of the period.
154
+
155
+ yfconnection_config : :class:`YFConnectionConfig`, default ``YFConnectionConfig()``
156
+ Configuration for managing yfinance/yaoo connectivity, such as timeouts and retry counts.
157
+
158
+ Returns
159
+ -------
160
+ Result : :class:`pandas.DataFrame`
161
+ Non-empty dataframe with the data from yahoo.
162
+ Its index are the historic dates.
163
+
164
+ Raises
165
+ ------
166
+ Inconsistent data returned : :class:`AttributeError`
167
+ Raised if the data returned from yahoo did not contain the expected column headers.
168
+
169
+ Timeout : :class:`TimeoutError`
170
+ Raised if `yf.download <https://ranaroussi.github.io/yfinance/reference/api/yfinance.download.html#yfinance.download>`__
171
+ timed out.
172
+
173
+ Data error: :class:`DataError`
174
+ Raised if data validation fails.
175
+ """
176
+
177
+ self.validate_status()
178
+ start = to_date(start)
179
+ end = to_date(end)
180
+
181
+ timeout_cnt = 0
182
+ time_sleep = yfconnection_config.timeout
183
+ while True:
184
+ try:
185
+ # yfinance treats 'end' as exclusive, whereas 'end' is inclusive here.
186
+ df = yf.download( ticker, start=start, end=end + timedelta(days=1), auto_adjust=True, progress=False, actions=True )
187
+ break
188
+ except yf.exceptions.YFRateLimitError as e:
189
+ raise TimeoutError(f"{ticker} yfinance timeout error: {e}. Retry later")
190
+ except TimeoutError as e:
191
+ if timeout_cnt >= yfconnection_config.max_retries:
192
+ raise TimeoutError(f"{ticker} yfinance timeout error: {e}. Retry later")
193
+ time.sleep(time_sleep)
194
+ time_sleep *= 2
195
+ timeout_cnt += 1
196
+ if len(df) == 0:
197
+ raise DataError(f"{ticker} yahoo returned no data", ticker=ticker, start=start, end=end)
198
+
199
+ try:
200
+ df = df.xs(ticker, level=1, axis=1)
201
+ except KeyError as e:
202
+ raise KeyError(f"Cannot find ticker '{ticker}' ... in data set for '{ticker}' ? DF length: {len(df)}, tickers: {df.columns}") from e
203
+
204
+ if not self.PRICE_FIELDS.issubset(df.columns):
205
+ raise AttributeError(ticker,f"{ticker} is missing column headers; only found {list(df.columns)}; check code base consistency."+\
206
+ f"Fields found: {fmt_list(sorted(df.columns))}; fields expected: {fmt_list(sorted(self.PRICE_FIELDS))}")
207
+
208
+ df = df.dropna()
209
+ if df.empty:
210
+ raise DataError(f"{ticker} no data left after dropping NaN's", ticker=ticker, start=start, end=end)
211
+ if np.min( df['Close'] ) <= 0.:
212
+ raise DataError(f"{ticker}: Closing prices of zero found", ticker=ticker, start=start, end=end)
213
+ if np.min( df['Open'] ) <= 0.:
214
+ raise DataError(f"{ticker}: Open prices of zero found", ticker=ticker, start=start, end=end)
215
+ if np.min( df['High'] - df['Low'] ) < 0.:
216
+ ix = df['High'].values - df['Low'].values < 0.
217
+ raise DataError(f"{ticker}: High and Low are out of order {len(ix)}; High: {df['High'].values[ix][:4]}, Low: {df['Low'].values[ix][:4]}", ticker=ticker, start=start, end=end)
218
+ if np.min( df['Low'] ) <= 0.:
219
+ raise DataError(f"{ticker}: Low prices of zero found", ticker=ticker, start=start, end=end)
220
+
221
+ df.index = df.index.values.astype('datetime64[D]')
222
+ df = df.astype(np.float64)
223
+ return df
224
+
225
+
226
+ if __name__ == "__main__":
227
+ from openqdata.cli import run_module
228
+
229
+ run_module(globals())
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: openqdata
3
+ Version: 0.3.0
4
+ Summary: Systematic access to cached quantitative market data for academic research
5
+ Author: Hans Buehler
6
+ License-Expression: PolyForm-Noncommercial-1.0.0
7
+ Project-URL: Repository, https://github.com/hansbuehler/openqdata
8
+ Classifier: Programming Language :: Python :: 3.12
9
+ Classifier: Programming Language :: Python :: 3.13
10
+ Classifier: Programming Language :: Python :: 3.14
11
+ Requires-Python: <3.15,>=3.12
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ License-File: NOTICE
15
+ Requires-Dist: cdxcore>=0.1.97
16
+ Requires-Dist: numpy>=1.26
17
+ Requires-Dist: scipy>=1.12
18
+ Requires-Dist: pandas>=2.2
19
+ Requires-Dist: polars>=1
20
+ Requires-Dist: pyarrow
21
+ Requires-Dist: requests
22
+ Requires-Dist: urllib3
23
+ Requires-Dist: prettytable
24
+ Requires-Dist: click>=8
25
+ Requires-Dist: pandas-market-calendars>=4.4
26
+ Requires-Dist: cvxpy
27
+ Requires-Dist: highspy
28
+ Requires-Dist: wrds>=3.2; python_version < "3.14"
29
+ Requires-Dist: sqlalchemy>=2
30
+ Requires-Dist: psycopg2-binary>=2.9
31
+ Requires-Dist: massive>=2.5
32
+ Requires-Dist: yfinance>=1.3
33
+ Provides-Extra: test
34
+ Requires-Dist: pytest>=8.2; extra == "test"
35
+ Requires-Dist: ruff; extra == "test"
36
+ Requires-Dist: build; extra == "test"
37
+ Provides-Extra: docs
38
+ Requires-Dist: sphinx>=8; extra == "docs"
39
+ Requires-Dist: myst-parser; extra == "docs"
40
+ Provides-Extra: plot
41
+ Requires-Dist: matplotlib; extra == "plot"
42
+ Dynamic: license-file
43
+
44
+ # openqdata
45
+
46
+ Data connectors and processing pipelines with simple, versioned caching, for academic research in quantitative finance. openqdata is not a trading system and provides no investment advice.
47
+
48
+ The package has four parts:
49
+
50
+ 1. **Caching and configuration.** Every result is cached under two storage locations, `raw` and `processed`, keyed by its scope and configuration.
51
+ 2. **Data connectors.** WRDS OptionMetrics IvyDB (WIDB), Massive, Yahoo Finance, FRED and Cboe VIX. Each source has a `Client` class that holds its authentication and basic access methods.
52
+ 3. **The WIDB benchmark data.** Cleaned daily option data from WRDS OptionMetrics IvyDB, together with an arbitrage-free interpolation of each day's quotes. The interpolation is a linear or SANOS surface that prices any strike and maturity.
53
+ 4. **The `arbfree` toolkit.** It fits arbitrage-free option surfaces to bid/ask quotes from any source.
54
+
55
+ Targets Python 3.13 and supports Python 3.12–3.14.
56
+
57
+ ```sh
58
+ python -m pip install openqdata # or: pip install -e '.[test]' from a clone
59
+ export OQ_DATA_ROOT=/path/to/your/data # optional; the default is ~/.local/share/openqdata
60
+ ```
61
+
62
+ ### Reading one day of the WIDB benchmark data
63
+
64
+ Stored fits are identified by their full configuration. **Always build it with `fit_config(smoothness)`**: `MkArbFree(smoothness=0.1)` has different settings and finds nothing. Read with `override_cache_mode="cacheonly"`, so that a missing day raises instead of being fitted or downloaded.
65
+
66
+ ```python
67
+ from datetime import date
68
+ from openqdata.arbfree.arbfree import ArbFreePricer
69
+ from openqdata.widb.arbfree import arb_free_model_day, fit_config
70
+ from openqdata.widb.sanos import fit_sanos_model_day
71
+
72
+ fitted = arb_free_model_day("SPX", date(2025, 8, 28), mk_arb_free=fit_config(0.1), override_cache_mode="cacheonly") # full book
73
+ model, stats = ArbFreePricer.from_dict(fitted["model"]), fitted["stats"]
74
+ reduced = fit_sanos_model_day("SPX", date(2025, 8, 28), fit_config(0.1), override_cache_mode="cacheonly") # reduced set
75
+ ```
76
+
77
+ Smoothness is `0` (linear), `0.1` or `0.25`. The data are licensed: you need your own WRDS access, and the fits live in your configured data locations, never in Git.
78
+
79
+ ### Clients
80
+
81
+ ```python
82
+ from openqdata.widb import WIDBClient
83
+ from openqdata.massive import MassiveClient
84
+ from openqdata.yahoo import YFClient
85
+ from openqdata.fred import FREDClient
86
+ from openqdata.vixdata import CboeClient
87
+ ```
88
+
89
+ ## Documentation
90
+
91
+ - [Getting started](https://github.com/hansbuehler/openqdata/blob/main/docs/getting-started.md): installation, storage and credentials
92
+ - [Caching, test mode and commands](https://github.com/hansbuehler/openqdata/blob/main/docs/caching.md)
93
+ - [Data connectors](https://github.com/hansbuehler/openqdata/blob/main/docs/connectors/index.md)
94
+ - [WIDB benchmark data](https://github.com/hansbuehler/openqdata/blob/main/docs/widb-benchmark/pipeline.md), [interpolation quality](https://github.com/hansbuehler/openqdata/blob/main/docs/widb-benchmark/fit-quality.md), [forwards and WRDS data issues](https://github.com/hansbuehler/openqdata/blob/main/docs/widb-benchmark/forwards.md) and [field reference](https://github.com/hansbuehler/openqdata/blob/main/docs/widb-benchmark/fields.md)
95
+ - [The arbfree toolkit](https://github.com/hansbuehler/openqdata/blob/main/docs/arbfree.md)
96
+ - [Extension packages](https://github.com/hansbuehler/openqdata/blob/main/docs/extensions.md)
97
+ - [Development and testing](https://github.com/hansbuehler/openqdata/blob/main/docs/development.md), [releasing](https://github.com/hansbuehler/openqdata/blob/main/docs/releasing.md) and the [changelog](https://github.com/hansbuehler/openqdata/blob/main/CHANGELOG.md)
98
+
99
+ ## Licensing and data
100
+
101
+ The code is licensed under [PolyForm Noncommercial 1.0.0](https://github.com/hansbuehler/openqdata/blob/main/LICENSE), with the attribution in [NOTICE](https://github.com/hansbuehler/openqdata/blob/main/NOTICE). Dependency and provider-data licenses are separate. This software license grants no rights to redistribute licensed observations or derived datasets.
102
+
103
+ This repository contains no licensed observations or datasets. Offline tests use synthetic inputs. To run the examples you need your own access to each provider.
@@ -0,0 +1,75 @@
1
+ openqdata/README.md,sha256=7yFi-CFR2EILw5edgD7dGRP34aHt_XswBmv9ifQ4NEM,365
2
+ openqdata/__init__.py,sha256=2fXm7y14NAFklwb9B4LDNCfP5jqqmS7Aj3y9rASSY9w,579
3
+ openqdata/biz_calendar.py,sha256=_okHCMgoefeblVn4Hj2itzXUbuYYNP8yc6LiTjqLupI,20616
4
+ openqdata/cli.py,sha256=_M56lJ6RoOGCeJ1utVdWPOy6-RZwGg3PFH1fCJX1rvs,4271
5
+ openqdata/env.py,sha256=VEU9EMmqCrW1bT_nQeLCpIDqqZJ6T0UeOf9GcCEyUfM,5550
6
+ openqdata/pool.py,sha256=2-sgEmREkCXC_OTrQzxQ0_lLkzHtmcv6JuI0LYK1sas,1143
7
+ openqdata/arbfree/README.md,sha256=R0F2MKuDlmY2qYnImQmW2coigjffAbIHb--6L6qlvaQ,241
8
+ openqdata/arbfree/__init__.py,sha256=48AamzFZxfAhivBE5zhAfHK-EKiP46_0bmaOkvTuzNM,430
9
+ openqdata/arbfree/arbfree.py,sha256=5z8zSYqvcaSTJ-PSDP3fDHiQTEl_WP6FaXC0TeT5j9Q,87224
10
+ openqdata/arbfree/sanos.py,sha256=d-rjGeGsJih2mi0x8o-vT5995adCXM-FOBGxi0xcYsY,19005
11
+ openqdata/arbfree/sanos_tools.py,sha256=XqYIif32a85GLwHg5vP44LztmgQXDB1hK_aSTyeuY3s,52831
12
+ openqdata/arbfree/tridiag.py,sha256=mJ56t7CxfisjaQ6azexsee-9foj6jQRqSEge81jWkf0,2733
13
+ openqdata/benchmark/README.md,sha256=dDjSMbzPxXvpmzDgVoF7ENk62oJBZi9bS34GkMNVzSE,207
14
+ openqdata/benchmark/__init__.py,sha256=GOEqNTxKrsZSaydv-4_Ydo1uyug3QkBVb2vTbEDQGnk,154
15
+ openqdata/fred/README.md,sha256=bkoVtJpvDq2UGpJ-KCmSrL0RhpBFosMHbt741eXNnlc,199
16
+ openqdata/fred/__init__.py,sha256=qUKg7rqzDCYbW7hRiGhpMl7TvxLOICvS-DQACF2p0Uw,315
17
+ openqdata/fred/client.py,sha256=F2nBiRFPotq9hdaxGacv2oL1zRw0Bm6fyCMqyIIZhCA,1793
18
+ openqdata/fred/rates.py,sha256=EO4N2-rsJ4ITqKLFX54kDNJi60wOp5czJyqsrQDd0O8,6144
19
+ openqdata/massive/README.md,sha256=Vmfh7GnHbRY2vsBqU6ttoHqxWri3S5w5fhmntaCG8qs,313
20
+ openqdata/massive/__init__.py,sha256=IJQTnv7aq6o7Umy9CKwvupjH4pJKrOa94_armF0bshE,473
21
+ openqdata/massive/client.py,sha256=a5Kwrc_nmTvJ7AkMe6ZuBelA_uoK7XYVIlpo_7Ed_Wc,48557
22
+ openqdata/massive/expiries.py,sha256=XuUPE-KGnK3NKgS9sEXPdxpwkeJWDlEbfbEXkl60BZQ,8400
23
+ openqdata/massive/processing.py,sha256=kjtaKTV0XsVJr7-roI_7G7QuGJl1ffoAggchUyRretg,18395
24
+ openqdata/massive/trade_conds.py,sha256=1NO_85xFgaftoo2572COBditW1zdt_vz9VabVTv4L5A,13471
25
+ openqdata/massive/options/README.md,sha256=5p0YMi5xYEeHeyg1Wyf_zCqcdXXXFq3zVBofnNT-i9E,212
26
+ openqdata/massive/options/__init__.py,sha256=Z3zXEDcnwwJijn2cMTLe6heubtBT6BURQjs4asaonWI,165
27
+ openqdata/massive/options/contracts.py,sha256=jUU0RN9ZUUNTeEHn6Y41zdkkcL2bGqwGhwOik8trZ0Y,31701
28
+ openqdata/massive/testing/README.md,sha256=PuN376TLYN5HiYm3yYktkF3zukmvXCPEzLxH3boyi0s,245
29
+ openqdata/massive/testing/__init__.py,sha256=G2gNqHHSmjJZYL2NDON6nkSqzP2UWrYBsMzDmD__0cI,252
30
+ openqdata/massive/testing/generate.py,sha256=laGwB1HNXLWchqh9B0thscQAV2tGItHvrb-K_jHLVLk,1943
31
+ openqdata/massive/testing/scope.py,sha256=CG59RyAKrhITbwH1Jx4hiUxKOKmg4kPJfgMWYPHTXIE,271
32
+ openqdata/massive/tickers/README.md,sha256=shAD_HqymlvoMmtaZvXWSkvAlo6A_xSi_wMmZoxIq78,266
33
+ openqdata/massive/tickers/__init__.py,sha256=lGa765rMjEf9-uR1pk2MG2AwVr6f6XsZ-p01RbVyJ74,102
34
+ openqdata/massive/tickers/basics.py,sha256=576CiXojY62ERbMvZJsgdkQc7YGlKkD2hxUIJQQmUh4,1774
35
+ openqdata/massive/tickers/data.py,sha256=rc0M9yccXPOC3XmSuwQzFu9etTG_48Gx24glTA6lkcQ,12514
36
+ openqdata/massive/tickers/filtered_history.py,sha256=X8FCEoGV45qSSHwhKDgfcMf-MtKSHISTx3pjzRRhJho,9598
37
+ openqdata/models/README.md,sha256=54PAvkfn6q_phtWtAQdTw4XvChUFDqshbz9hny8kJuM,174
38
+ openqdata/models/__init__.py,sha256=ZPmriXu98x3JcVdvN4Pv87rJ4xzgizmRz2N5OAZNjtA,150
39
+ openqdata/tickers/README.md,sha256=pMkHt2x2-flxWo0JLqYrU9IqLagF89w-oov377UsJ4M,244
40
+ openqdata/tickers/__init__.py,sha256=xsQ_bgN4bMBDj_BnBC-_oGlKTgoI1zk3EcEY9CPfBa0,375
41
+ openqdata/tickers/ticker_calendar.py,sha256=YSCqlIECyd1pdtjkSolcLwaOzQeSEgYLZAKMZ4S4pnY,15490
42
+ openqdata/utils/README.md,sha256=myefkoWFgocjNj-9jUFWm71bpWzqjuniJhw1hbXjT5Y,67
43
+ openqdata/utils/__init__.py,sha256=DJOoKJXm8fxDbDehW2I3Ya-Nv5bV9k_z32Fwntn5_Rc,1480
44
+ openqdata/utils/cvxpy.py,sha256=z5v5TOf8FGvQv1ta3qlxFJVFPm8vMev5uWNsofVGJ9o,1487
45
+ openqdata/utils/pd.py,sha256=qlg9hG7s365gJzy8pVqRb_wtd7F3l6cbJmN6XZz1Xlc,4324
46
+ openqdata/utils/pl.py,sha256=sD8PuTr_JnNk_yNUn9oaI6kJOLIrILq8M51ldtAveGY,3714
47
+ openqdata/vixdata/README.md,sha256=we4WCt8zbW9yfXMtwnbFPFmcA9aJRoAqSWOGkQ5qZM0,239
48
+ openqdata/vixdata/__init__.py,sha256=TqCHyRjTHKayluEokmCCIZ6I6Uu5aOIbKNkHJTijKNc,231
49
+ openqdata/vixdata/cboe.py,sha256=IML-rBAxPF3ssyoKXk4LjM2iTlxrvTdNGbIu0hY6HVU,4700
50
+ openqdata/vixdata/client.py,sha256=PRTC0V3WYsHj6UN73KPKkK5nSBOAO0tGyjxDIkUXJs8,1338
51
+ openqdata/vixdata/formula.py,sha256=Yb_dy_Dd0uPZsq48B9Q7UDENKaicdt0oxHjNk35YRRs,6026
52
+ openqdata/widb/README.md,sha256=J3uxSer2LRkX6YLjbqNtUrYsfuBnfejCJYCxuqVcEbk,631
53
+ openqdata/widb/__init__.py,sha256=yEWg8Dx25Qh1ldaeLUlN98NnuqLKV0rJwWQAwCsyNKw,955
54
+ openqdata/widb/arbfree.py,sha256=rf_MglvuD_j3j9PlUci93UtjX5zv00D22f-oZ6Q1g_Y,32514
55
+ openqdata/widb/bad.py,sha256=DgUoNLDbW11wEvULcMg_EvtjvsRO6k1pcTyKpp7YTFk,2183
56
+ openqdata/widb/client.py,sha256=9YzQC0XghINLn6EgnLqO-nZfq6Br5fHZmqWs4gPi-kc,19393
57
+ openqdata/widb/connection.py,sha256=ED6s3-KKbjp5gGuojV2t8QN8X-kZrJFLapjJQ7eEu7g,2868
58
+ openqdata/widb/day.py,sha256=mmy25VCj91mamF3vBxuX1vmgyplkBJhnB869UeqT8T0,58380
59
+ openqdata/widb/fitstats.py,sha256=Xxk7sKAX0ewIAS62QQQrE3s6MHCKjIGTHwiu4L1cGJ8,18507
60
+ openqdata/widb/options_filter.py,sha256=R7dq1k5dplG4Ij6gcT7jsAfK6vkBoj8ml4K7haPQoR4,17490
61
+ openqdata/widb/sanos.py,sha256=NeXwvFa1BhcYZlR36BzkDy6wRQvXOAQNtrpkIhOj_9A,5195
62
+ openqdata/widb/timeseries.py,sha256=kccty8C9FkKkzy1aXu8Bc0L7PSCRtDLVWbtxDS7fw-4,25934
63
+ openqdata/widb/testing/README.md,sha256=XrMViTNDhbcshLkeXuUdCELH3q0mYU76sxYBnMgFDic,239
64
+ openqdata/widb/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
+ openqdata/widb/testing/generate.py,sha256=CC5MrWO45px1SzOsxudNc4B2o9tEF8Le1LrPuzAA1cY,1261
66
+ openqdata/widb/testing/scope.py,sha256=HvdHaDtoVE_D3Pca63p7FilZLzd_5Nj8HxFtC22XHhI,271
67
+ openqdata/yahoo/README.md,sha256=9-GORpiOgpcVNx9hIwRt7H9YKipTII9yBdhiDvKcjPY,217
68
+ openqdata/yahoo/__init__.py,sha256=RBjn2wQ-9p9-24vgLzoRyog3L4r-Bj9tauu7V-_93DQ,147
69
+ openqdata/yahoo/client.py,sha256=FkyU-9lkWGH2DBnC3BKtwNaJFjegXk3e0gUHl9SeOi8,9469
70
+ openqdata-0.3.0.dist-info/licenses/LICENSE,sha256=_8yjiEGttpS284BkfhXxfERqTRZW_tUaHiBB0GTJTMg,4563
71
+ openqdata-0.3.0.dist-info/licenses/NOTICE,sha256=flCSr7HRJ2E0siRDGeLj9s7BxbK5KVYS4jX39TG-4JM,100
72
+ openqdata-0.3.0.dist-info/METADATA,sha256=9jQmQ1RIGssnJ-aSgLjDyN0J0VeJC9txfUbGX4gc6Vo,5626
73
+ openqdata-0.3.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
74
+ openqdata-0.3.0.dist-info/top_level.txt,sha256=WdOLlH5P_-asph4skPtYMfLcYYe_VVRed7RrYhO4g0c,10
75
+ openqdata-0.3.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,131 @@
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree
8
+ to them as both strict obligations and conditions to all
9
+ your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the
14
+ software to do everything you might do with the software
15
+ that would otherwise infringe the licensor's copyright
16
+ in it for any permitted purpose. However, you may
17
+ only distribute the software according to [Distribution
18
+ License](#distribution-license) and make changes or new works
19
+ based on the software according to [Changes and New Works
20
+ License](#changes-and-new-works-license).
21
+
22
+ ## Distribution License
23
+
24
+ The licensor grants you an additional copyright license
25
+ to distribute copies of the software. Your license
26
+ to distribute covers distributing the software with
27
+ changes and new works permitted by [Changes and New Works
28
+ License](#changes-and-new-works-license).
29
+
30
+ ## Notices
31
+
32
+ You must ensure that anyone who gets a copy of any part of
33
+ the software from you also gets a copy of these terms or the
34
+ URL for them above, as well as copies of any plain-text lines
35
+ beginning with `Required Notice:` that the licensor provided
36
+ with the software. For example:
37
+
38
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
39
+
40
+ ## Changes and New Works License
41
+
42
+ The licensor grants you an additional copyright license to
43
+ make changes and new works based on the software for any
44
+ permitted purpose.
45
+
46
+ ## Patent License
47
+
48
+ The licensor grants you a patent license for the software that
49
+ covers patent claims the licensor can license, or becomes able
50
+ to license, that you would infringe by using the software.
51
+
52
+ ## Noncommercial Purposes
53
+
54
+ Any noncommercial purpose is a permitted purpose.
55
+
56
+ ## Personal Uses
57
+
58
+ Personal use for research, experiment, and testing for
59
+ the benefit of public knowledge, personal study, private
60
+ entertainment, hobby projects, amateur pursuits, or religious
61
+ observance, without any anticipated commercial application,
62
+ is use for a permitted purpose.
63
+
64
+ ## Noncommercial Organizations
65
+
66
+ Use by any charitable organization, educational institution,
67
+ public research organization, public safety or health
68
+ organization, environmental protection organization,
69
+ or government institution is use for a permitted purpose
70
+ regardless of the source of funding or obligations resulting
71
+ from the funding.
72
+
73
+ ## Fair Use
74
+
75
+ You may have "fair use" rights for the software under the
76
+ law. These terms do not limit them.
77
+
78
+ ## No Other Rights
79
+
80
+ These terms do not allow you to sublicense or transfer any of
81
+ your licenses to anyone else, or prevent the licensor from
82
+ granting licenses to anyone else. These terms do not imply
83
+ any other licenses.
84
+
85
+ ## Patent Defense
86
+
87
+ If you make any written claim that the software infringes or
88
+ contributes to infringement of any patent, your patent license
89
+ for the software granted under these terms ends immediately. If
90
+ your company makes such a claim, your patent license ends
91
+ immediately for work on behalf of your company.
92
+
93
+ ## Violations
94
+
95
+ The first time you are notified in writing that you have
96
+ violated any of these terms, or done anything with the software
97
+ not covered by your licenses, your licenses can nonetheless
98
+ continue if you come into full compliance with these terms,
99
+ and take practical steps to correct past violations, within
100
+ 32 days of receiving notice. Otherwise, all your licenses
101
+ end immediately.
102
+
103
+ ## No Liability
104
+
105
+ ***As far as the law allows, the software comes as is, without
106
+ any warranty or condition, and the licensor will not be liable
107
+ to you for any damages arising out of these terms or the use
108
+ or nature of the software, under any kind of legal claim.***
109
+
110
+ ## Definitions
111
+
112
+ The **licensor** is the individual or entity offering these
113
+ terms, and the **software** is the software the licensor makes
114
+ available under these terms.
115
+
116
+ **You** refers to the individual or entity agreeing to these
117
+ terms.
118
+
119
+ **Your company** is any legal entity, sole proprietorship,
120
+ or other kind of organization that you work for, plus all
121
+ organizations that have control over, are under the control of,
122
+ or are under common control with that organization. **Control**
123
+ means ownership of substantially all the assets of an entity,
124
+ or the power to direct its management and policies by vote,
125
+ contract, or otherwise. Control can be direct or indirect.
126
+
127
+ **Your licenses** are all the licenses granted to you for the
128
+ software under these terms.
129
+
130
+ **Use** means anything you do with the software requiring one
131
+ of your licenses.
@@ -0,0 +1 @@
1
+ Required Notice: Copyright 2026 Hans Buehler. openqdata (https://github.com/hansbuehler/openqdata).
@@ -0,0 +1 @@
1
+ openqdata