Skip to main content

timefire

Timefire's resolved forecast record as DataFrames. Read-only.

import timefire as tf

day = tf.book("2026-08-27")              # one graded book
print(tf.verify("2026-08-27").status)    # verified

What you get

Call Returns Source
tf.batches() one row per graded book: its verdict (cap-weighted vs SPY) first, then the equal-weighted portfolio vs RSP files
tf.books() every prediction from every graded book files
tf.book("2026-08-27") one book; .attrs has its hash, content address, signature and public verification key files + API
tf.nav() the paper portfolio day by day, cap-weighted (the API's weighting=cap, the line Timefire leads with), next to SPY; tf.nav(weighting="equal") is the equal-weighted line next to RSP files
tf.stats() counts, hit rates and the verdict tally (cap-weighted vs SPY) over graded books, the API's resolved-only fields: hit rates from 2026-04-14 under the published rule, the 69 backtest books apart files
tf.manifest() the export index with sizes and SHA-256 fingerprints files
tf.ticker("AAPL") one ticker's graded observations API
tf.calibration() return deciles, rank buckets, side hit rates API
tf.verify("2026-08-27") local hash and Ed25519 check against the pinned key API
tf.verify_record(record, "2026-08-27") the same check on a verify record you fetched yourself; pass the date you asked for none
tf.verify_portfolio("2026-08-27") one of the book's two portfolios ("cap" vs SPY, the default; "equal" vs RSP), every number rechecked against the signed book API
tf.verify_portfolio_record(...) the same check on responses you fetched yourself none

Within one Python process, a file fetched again (stats() and books() read the ~25 MB books.csv) is downloaded again only if the server's copy changed: the client asks with the file's ETag and reuses its bytes when the server answers "not modified". Each call still sees the current export. The kept bytes stay under 64 MB, least recently used first out.

The data calls return graded books only; a book is graded ten trading days after it was sealed. verify() also answers for a book that is still sealed, with the sealed status below, and never sees its contents. What each column means: https://timefire.ai/developers/columns. How verification works: https://timefire.ai/developers/verification.

verify() returns one of verified, sealed, failed, legacy-unverifiable. legacy-unverifiable is a book from before 2026-04-28, with the right date, that does not pass the check (any failed check, not only a hash mismatch), and it is reported only when you asked for a pre-cutoff date. Those books predate exact-signed-bytes custody. Since timefire#995 they serve their originally signed bytes and verify, so treat legacy-unverifiable as a failure.

verify_portfolio() returns verified, unsigned-weights (all checks pass, but the weights are an earlier book's market-cap weights, which its signed payload does not carry), incomplete (nothing failed, but a check could not be made), pending or failed, with a checks list. It is a check-for-check port of @timefire/client's verifyPortfolio.

Changelog

  • 0.1.2: calling stats() or books() again in the same Python process no longer downloads the ~25 MB books.csv again unless the server's copy changed. The client asks with the file's ETag and reuses the bytes it already holds when the server answers "not modified"; this applies to anything the client fetches twice, every call still sees the current export, and at most 64 MB is kept in memory. book() now reads its seal (hash, content address, signature, key) from the API's /verify instead of downloading the whole book from /batch; what it returns is unchanged. Docs: nav() names the API's weighting=cap, and legacy-unverifiable is described exactly.
  • 0.1.1: cap-weighted against SPY is the default series; weighting="equal" selects the equal-weighted line against RSP. stats() reports the 69 backtest books apart. verify() checks the date inside the signed bytes. verify_portfolio() checks a book's cap-weighted or equal-weighted portfolio against the signed book.
  • 0.1.0: first release.

Metadata

Release files for timefire 0.1.2

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

Source distribution (sdist)

Source distribution for timefire 0.1.2
File Size Uploaded Provenance Actions
timefire-0.1.2.tar.gz 407.4 kB With provenance Details for timefire-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for timefire 0.1.2
File Interpreter ABI Platform Actions
timefire-0.1.2-py3-none-any.whl Python 3 none any Details for timefire-0.1.2-py3-none-any.whl

Total release size: 432.1 kB

Release files / timefire-0.1.2.tar.gz

Download URL timefire-0.1.2.tar.gz
Size 407.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8dccbaf26668633b347131b096bc0a93c220a48c369464013d96d06aa4a3cc41
BLAKE2b-256 checksum
How to use checksums
bcf30ff0dc561a4c121ff15c9efec7875edbd79499eb6203b33fec0ab03a9851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / timefire-0.1.2-py3-none-any.whl

Download URL timefire-0.1.2-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bc3e9ba008510b316cfd69cbb877cb9d0981cc911c3affe47e2ce21e7c02f8f
BLAKE2b-256 checksum
How to use checksums
83a45b58f580d111c746386b493370b0e3dae25657fa702588e368358284c792
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for timefire 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for timefire-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

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