Skip to main content

Augment pandas DataFrame with methods to fetch time series data for quant finance

Project description

Pandas ML Quant Data Provider

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

Example:

# monkey patch pandas 
from pandas_ml_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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandas-ml-quant-data-provider-0.1.15.tar.gz (20.4 kB view details)

Uploaded Source

File details

Details for the file pandas-ml-quant-data-provider-0.1.15.tar.gz.

File metadata

  • Download URL: pandas-ml-quant-data-provider-0.1.15.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.9

File hashes

Hashes for pandas-ml-quant-data-provider-0.1.15.tar.gz
Algorithm Hash digest
SHA256 45b2e875375dc2c68e2a243c8081d1bd1da91eb556fbc7e788c3b83e8c83a3f7
MD5 2cb7187a27d0f562375f0cd4cc4ce2a9
BLAKE2b-256 6521408630c81da01109f2415cd575d2c65c8761fa46d23164435996c47dd950

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page