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.1

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.1
File Size Uploaded Provenance Actions
finance_etl-0.2.1.tar.gz 56.1 kB Without provenance Details for finance_etl-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 124.4 kB

Release files / finance_etl-0.2.1.tar.gz

Download URL finance_etl-0.2.1.tar.gz
Size 56.1 kB
Tags Source
SHA-256 checksum
How to use checksums
905024e14e701bd1022b0d5aeabd225d3d62bbabd7d9f8ec464943e92a71eb90
BLAKE2b-256 checksum
How to use checksums
899583898ba25eaf456611d9960aba3958f86b4f5d239342dc0371781d523f4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL finance_etl-0.2.1-py3-none-any.whl
Size 68.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1895af76a7ee9205585d64e3b0eaa1231122f7b5e27c5c10a3704e98d33d1d45
BLAKE2b-256 checksum
How to use checksums
45f5c5e6c62262d89470959d58c1aa1c0160315736aaf78c1e86a37eeaaeb192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for finance-etl 0.2.1

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