Skip to main content

finance etl

Standard financial ETL workflows

Build Status codecov License PyPI

Overview

finance-etl provides reusable finance-specific ETL adapters on top of ccflow and the generic ccflow-* connector packages. It owns public finance data access concerns such as trading calendars, market sessions, provider request planning, credential config shapes, and finance-aware backfill helpers.

Applications compose these adapters into workflows and decide where data is stored. Provider credentials, private paths, and deployment-specific output stores stay outside this package.

Quick Start

Compose the packaged calendar registry with ccflow-etl, then point a context at an explicit calendar path:

defaults:
    - /backfills: default
    - /finance_calendars: default
    - _self_

hydra:
    searchpath:
        - pkg://ccflow_etl.config
        - pkg://finance_etl.config

context:
    start_datetime: 2024-07-01
    end_datetime: 2024-07-05
    calendar: /calendars/exchange/XNYS

Calendar paths are namespaced by code, for example /calendars/exchange/XNYS, /calendars/exchange/XTKS/session/starts, /calendars/country/JP, and /calendars/region/us.

Python callers use the same code-parameterized objects, such as ExchangeCalendar["XNYS"], RegionCalendar["US"], and CountryCalendar["JP"].

Provider credentials are composed through Hydra groups. For Massive REST access:

defaults:
    - /credentials: massive
    - _self_

The packaged credential config reads secrets from environment variables; it does not store secrets in public package config.

Massive stock REST wrappers also cover ticker overview (/v3/reference/tickers/{ticker}), grouped daily market summary (/v2/aggs/grouped/locale/us/market/stocks/{date}), and daily ticker open/close (/v1/open-close/{ticker}/{date}). MassiveTickerOverviewBundleExtractModel resolves a dated symbol universe, makes bounded concurrent single-ticker overview requests, resumes local JSONL staging, and publishes one compressed object per date.

Extract models write through a required dataset (ccflow_etl.DatasetDefinition), which supplies the partition key, stores, format, media type and first date; explain results include the dataset's plan record (key, uri).

MassiveTickerOverviewBundleExtractModel writes one compressed JSONL bundle per date and declares its symbol universe as a graph dependency when it will fetch. ArtifactSymbolUniverseModel reads symbols from a stored artifact and accepts an optional source_model that produces that artifact; the source model is declared as a dependency and called before the read. A bundle's overview model can set accepted_status_codes: [404] so tickers that no longer resolve are recorded as not_found without raising.

Documentation

Dependency Contract

  • May depend on ccflow, ccflow-etl, ccflow-http, ccflow-s3, finance-dates, and finance-flow.
  • Should keep provider credentials and deployment-specific storage outputs out of package code.
  • Must not depend on application-specific packages.

Test Convention

Default tests should use synthetic market calendars and recorded or generated provider-shaped responses. They should not require live provider credentials, live S3, or live databases.

Metadata

Release files for finance-etl 0.2.0

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

Source distribution (sdist)

Source distribution for finance-etl 0.2.0
File Size Uploaded Provenance Actions
finance_etl-0.2.0.tar.gz 54.8 kB Without provenance Details for finance_etl-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for finance-etl 0.2.0
File Interpreter ABI Platform Actions
finance_etl-0.2.0-py3-none-any.whl Python 3 none any Details for finance_etl-0.2.0-py3-none-any.whl

Total release size: 121.8 kB

Release files / finance_etl-0.2.0.tar.gz

Download URL finance_etl-0.2.0.tar.gz
Size 54.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e238b907ac4609b1c9eef1d0399a90bb3f28e47800f8448182c8e27a7fad4b58
BLAKE2b-256 checksum
How to use checksums
7164af30e31a74f7d03923b35b5111812a4198a8d1b915ead248fe190fa82385
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / finance_etl-0.2.0-py3-none-any.whl

Download URL finance_etl-0.2.0-py3-none-any.whl
Size 67.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
626c5a9c6f4933068459d3533bf7e2741cf38d687edaabfa716eb1ae0772a59f
BLAKE2b-256 checksum
How to use checksums
f9f7f27f4bda78aef924239dd2d64f364d59ebe3868fadc3ad769310218ad189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for finance-etl 0.2.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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