Add CryptoHFTData historical data provider#3
Open
hmate9 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CryptoHFTData as a first-class historical market-data provider in PFeed.
pe.CryptoHFTData()/pe.CHD()clients andDataSource.CRYPTO_HFT_DATApfeed[cryptohftdata], including keyless free-tier accessdata_originso venues never collide in storageCRYPTOHFTDATA_API_KEY,CRYPTO_HFT_DATA_API_KEY, andCHD_API_KEYCryptoHFTData also provides order-book history. That is deliberately not exposed in this change because PFeed's quote/order-book validation and resampling path is currently marked unsupported; the integration should not imply semantic support that PFeed cannot yet preserve end to end.
Disclosure: I am the creator of CryptoHFTData.
Validation
ruff check --config ./afterpython/ruff.toml .ruff format --check --config ./afterpython/ruff.toml .pytest tests/unit/crypto_hft_data tests/unit/test_etl.py tests/unit/test_resampling.py -q(5 passed)uv buildbinance_futures, 2026-07-11; 15,699 trades were transformed into 1,214 one-minute bars covering 00:00 through 23:59The repository's full legacy unit suite currently has unrelated collection failures from removed
pfeed.data_toolsmodules and undeclared Dask dependencies. This change also updates the shared logging fixture to call the currentconfigure_logging()API so maintained tests can initialize correctly.