Skip to main content

Pandas ML Quant Data Provider

An independent module used to fetch time series and other data used for quant finance studies.

Installation

Data can always be fetched instant without any local data base. However if you need to screen across assets for matching criteria then a local database is needed. Developing models often depend on some premise. Like for a crash detection model you would want to use instruments which indeed suffered a crash. Therefore some data is stored into a data base using dolthub. Querying this data requires you to install dolt by following their installation instructions.

pip install pandas-quant-data-provider
 

!! NOTE !! We need to keep data libraries like yfincance up do date alsmost every minute. Whenever there is a change in the api the library has to react. This happens more often as we whish, especially with yahoo finance. This is why this library gets pip installed -U on every import. This means for server based solutions on every restart. Make sure you use all pandas-ml* libraries inside a virtual env.

Example:

# monkey patch pandas 
from pandas_quant_data_provider import pd, YAHOO, INVESTING, CRYPTO_COMPARE

# fetch data from various data sources 
#   * fetches all available dates
#   * caches data for 10 minutes
df = pd.fetch_timeseries({
    YAHOO: ["SPY", "DIA"],
    INVESTING: ["index::NYSE Tick Index::united states", "bond::U.S. 30Y::united states"],
    CRYPTO_COMPARE: ["BTC"]
})

df.tail()

PS If you are not familiar with pandas MultiIndex, you can watch this video: How do I use the MultiIndex in pandas?

Installation

Follow the instructions on https://github.com/KIC/pandas-ml-quant

Documentation

Check out the notebooks at https://github.com/KIC/pandas-ml-quant/blob/master/notebooks

Metadata

Release files for pandas-quant-data-provider 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandas-quant-data-provider 0.2.7
File Size Uploaded Provenance
pandas-quant-data-provider-0.2.7.tar.gz 12.6 kB Without provenance Details

Release files / pandas-quant-data-provider-0.2.7.tar.gz

Download URL pandas-quant-data-provider-0.2.7.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
05ae9ec812f231a69019d2646630230785de361cceb553d3d0a09ed23fce1c44
BLAKE2b-256 checksum
How to use checksums
da5daec086903ed9ded5160eae935365b6b0cd1ff24da36042c72f92f917f1c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Security for pandas-quant-data-provider 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page