Basic utility to manage index or portfolio constituent data
Utility library to fetch lists of symbols/constituents as managed by the user. The constituents are to be stored as parquet dataframes in a local or remote location, via the fsdata package. The tickers are extracted from the index column.
Configuration
Create a consdata entry in the fsdata.ini config file. The config is resolved by fsdata, in order: the FSDATA_CONFIG environment variable, then upward search from the current directory (a repo-local config), then the XDG_CONFIG_HOME folder (default ~/.config).
# fsdata.ini
[consdata]
path = s3://my-bucket/consdata
Usage
To list available universes
import consdata
consdata.items()
To get a dataframe of constituents
consdata.load(name)
To get a list of tickers
consdata.get_tickers(name)
Related projects and Resources
- fsdata Simple data catalog library for python
- FinanceDataBase Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets
- index-constituents Get the current and historical constituents of popular stock indices.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file consdata-0.1.0-py3-none-any.whl.
File metadata
- Download URL: consdata-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8b193f0b4a98357d4457628d3f0edb444dc6bcf74d3891db170edd21c50e83d
|
|
| MD5 |
292a5235521170bc09c417ab01e82208
|
|
| BLAKE2b-256 |
659bb69ce397bbcd534dfb9cf53398fae67257a710582ad30d1f06eb78459eaa
|