Skip to content

Releases

v0.2.0

Choose a tag to compare

@jordanestralioto jordanestralioto released this 11 Nov 00:21

Version 0.2.0 moves production ingestion paths to PyArrow, removes Pandas
and Polars from the runtime dependencies, and strengthens CVM and B3 integrity
guarantees. The three root public facades and their signatures remain stable:
FundamentalStocksDataCVM, HistoricalQuotesB3, and ExtractionResultB3.

Upgrading from 0.1.4 requires regenerating CVM and B3 Parquet files. Read
the migration guides together before updating consumers:

Breaking changes when upgrading from 0.1.4

  • CVM: all Parquet columns become Arrow string, with empty fields as
    "" and preserved leading zeros and decimal text. Regenerate files from
    their ZIP sources; consumers must explicitly convert numeric columns.
  • Dependencies: Pandas and Polars are no longer installed or imported by
    the runtime. Install them explicitly if your application uses DataFrames.
  • Removed imports: globaldatafinance.__version__, ExtractorAdapter,
    ReadFilesAdapter, and the generic
    macro_infra.extractor_file/macro_infra.read_files modules are removed.
    Read the version with importlib.metadata.version("globaldatafinance")
    and migrate adapters to the source-owned components.
  • Timeout: replace imports of the domain TimeoutError exception with
    DownloadTimeoutError; Python's built-in exception is distinct. The
    infrastructure guide covers these removals and the changed write-error
    behavior.
  • B3 fast: eligible multi-source runs now default to spawn processes.
    Protect script execution with if __name__ == '__main__':, or set
    GDF_B3_EXECUTOR_BACKEND=thread before constructing the facade to retain
    threads as in 0.1.4. Calls during child bootstrap now fail before source
    revalidation; the pool error explains the correction. Put CVM downloads
    and other application side effects inside the main guard too: the library
    cannot prevent code that executes before the B3 call.
  • Persisted B3 data: migrate market selection and regenerate Parquets
    with schema v2 as described in the migration guide.

Breaking COTAHIST contract changes

  • The default selection now preserves every type-01 quotation, including
    TPMERC 021 and unknown numeric markets. Omit assets_list or use todos;
    specify classes when a consumer requires a filter.
  • Parquet moves to versioned schema 2 with 32 columns. The original 20 fields
    retain their order and values; the 12 additions include the omitted official
    fields, provenance, and the original 245 quotation bytes.
  • Regenerate v1 Parquets from the original ZIP/TXT sources. Append and merge
    across incompatible schemas fail; converting v1 files cannot recover missing
    data. Follow the cutover and rollback procedures in the migration guide.
  • Specify an available annual range: any missing requested year or invalid
    record fails extraction, including a record in a filtered-out market.
  • Publication requires complete staged-output readback and exact data and
    manifest verification. Failures preserve the previous output; consumers must
    check success, schema_version, and integrity before switching files.

Dependency requirements

  • PyArrow: >=26.0.0,<27.0.0.
  • psutil: >=7.2.2,<8.0.0.
  • pydantic-settings: >=2.16.2,<3.0.0.

The development lock also updates virtualenv to 21.14.13, fixing
GHSA-cx6f-vjhg-g3cc
in Bash environment activation. This dependency is used by pre-commit.

Official 2026 source and disk space

A November version of COTAHIST_A2026.ZIP contains one UTF-8 record occupying
246 bytes instead of the required 245. Strict validation rejects that file and
preserves the previous output. Retain the original and follow the
explicit conversion to a Latin-1 copy;
the extraction hashes and registro_original identify that converted copy.
The free-space rule
conservatively estimates staging and publication needs and can substantially
exceed the final Parquet size.

Restart after a crash

New transaction locks also record the process start time for diagnostics. This
timestamp can change with clock adjustments, so a live PID with a different
start time cannot authorize recovery. Automatic recovery requires the recorded
PID to no longer exist on the same host and process namespace; live PIDs,
including reused ones, and locks from another host require inspection. Follow
the manual CVM/B3 recovery procedure.

Windows console

Redirected Windows output, such as > log.txt, scheduled tasks, or
subprocesses, commonly uses a legacy code page. CVM and B3 progress and
summaries no longer abort with UnicodeEncodeError there: bars use # and
-, and unsupported symbols become ?. The 0.1.4 release had this failure.

Acceptance evidence

The local acceptance corpus covers 2000–2026, with a snapshot ending on
2026-09-02. These bounds are not independent confirmation of exchange coverage
or availability of every historical year. A
supplementary 2025–2026 acceptance
verified 6,604,374 quotations through 2026-11-06 with exact fast/slow
equality, using the Latin-1 copy described above.

Attached to this release:

  • cotahist-v2-supplied-corpus.sha256: SHA-256 manifest of the 27 frozen
    corpus ZIP files.
  • manifest.json, results.jsonl, summary.json, and
    source-normalization.json: artifacts of the 2025–2026 campaign.
  • official-2026-rejection.json: the expected rejection of the unmodified
    official 2026 file.

CI release acceptance for this tag (dry run of the publication workflow on
b72523f): https://github.com/jordanestralioto/Global-Data-Finance/actions/runs/42922639439

v0.1.3

Choose a tag to compare

@jordanestralioto jordanestralioto released this 28 May 00:59

This release focuses on codebase cleanup, updating API documentation, arch, and enhancing examples to improve developer experience.

v0.1.2

Choose a tag to compare

@jordanestralioto jordanestralioto released this 27 Nov 15:20

Full Changelog: v0.1.1...v0.1.2

v0.1.1 - Stability & Core Enhancements

Choose a tag to compare

@jordanestralioto jordanestralioto released this 26 Nov 19:49

🚀 Release v0.1.1

This release brings stability improvements and minor fixes to the core data processing engine.

📦 Changes

  • Improvements to data normalization and extraction pipelines.
  • Minor bug fixes and performance optimizations.
  • Dependency updates for better compatibility.

Full Changelog: v0.1.0...v0.1.1

v0.1.0: Initial Release - CVM & B3 Data Engine

Choose a tag to compare

@jordanestralioto jordanestralioto released this 26 Nov 18:09

🚀 Initial Release

We are excited to announce the first release of Global-Data-Finance, a high-performance Python library for financial data extraction and processing, built with Clean Architecture.

✨ Key Features

  • CVM Regulatory Data:
    • Massive download of documents (DFP, ITR, FRE, FCA, etc.).
    • Async download manager with automatic retries and validation.
  • B3 Historical Quotes:
    • High-performance parsing of COTAHIST files.
    • Support for multiple assets (Stocks, ETFs, BDRs, Options, Futures).
    • Optimized extraction to Parquet format.
  • Performance & Architecture:
    • Asynchronous I/O for up to 10x faster downloads.
    • Modular design based on SOLID principles.
    • Type hints and comprehensive logging.

📦 Installation

pip install globaldatafinance