Skip to main content

Early-stage unified interface for querying financial time-series data

Project description

Metapyle

PyPI Python License: MIT

Early-stage research framework — Not for production use.

A unified interface for querying financial time-series data from multiple sources.

Overview

Financial data lives in many places—Bloomberg terminals, internal APIs, CSV exports—each with its own ticker syntax, authentication, and quirks. Metapyle provides a YAML-based catalog that maps human-readable names to source-specific details, giving you a single client.get() interface regardless of where the data comes from.

Currently supports Bloomberg (via xbbg), Macrobond (via macrobond-data-api), GS Marquee (via gs-quant), and local files (CSV/Parquet).

Installation

uv add metapyle

Or with pip:

pip install metapyle

Note: Bloomberg requires a Bloomberg Terminal. GS Quant requires GS Marquee access. Macrobond requires the desktop app or Web API credentials.

Quick Start

1. Create a catalog file (catalog.yaml):

# Bloomberg
- my_name: sp500_close
  source: bloomberg
  symbol: SPX Index
  field: PX_LAST

# Macrobond
- my_name: us_gdp
  source: macrobond
  symbol: usnaac0169

# GS Quant
- my_name: eurusd_vol
  source: gsquant
  symbol: EURUSD
  field: FXIMPLIEDVOL::impliedVolatility
  params:
    tenor: 1m
    deltaStrike: DN

# Local file
- my_name: gdp_forecast
  source: localfile
  symbol: GDP_FORECAST    # column name in the file
  path: /data/macro.csv   # file path

2. Query data:

from metapyle import Client

with Client(catalog="catalog.yaml") as client:
    # end defaults to today
    df = client.get(["sp500_close", "us_gdp"], start="2024-01-01")

Documentation

See the User Guide for complete documentation, including:

  • Catalog configuration
  • Creating catalogs from CSV
  • Frequency alignment
  • Caching
  • Macrobond unified series (server-side alignment)
  • Available data sources
  • Error handling

For low-level API examples showing what metapyle abstracts, see Raw API Examples.

License

MIT License - see LICENSE for details.

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

metapyle-0.1.4.tar.gz (49.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metapyle-0.1.4-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file metapyle-0.1.4.tar.gz.

File metadata

  • Download URL: metapyle-0.1.4.tar.gz
  • Upload date:
  • Size: 49.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metapyle-0.1.4.tar.gz
Algorithm Hash digest
SHA256 08671de3f3d583eb6f992c9e911e2bca89e2ba028cb7ea158c5352448aad3060
MD5 ae14910ef1f5c7dad3a09af54c345c3f
BLAKE2b-256 84de5cf934d34767d71db5255761b114e34fd731178afc54256af8af2996dbf1

See more details on using hashes here.

File details

Details for the file metapyle-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: metapyle-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for metapyle-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a4e71c0f2df69f0b4ce0d9af59d85b7b2f7ee22ce0631032337342111f7b6faa
MD5 7f17f23d48dc5c55243409471f590f4f
BLAKE2b-256 a8cc43adc0649b22a70b0e7adb3c4b654b1b6d09c84cc2424feaa399a2a936a8

See more details on using hashes here.

Supported by

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