F1ReplayTiming
F1 리플레이와 실시간 트랙 데이터·텔레메트리를 시각화
Data Engine for AI/Algo Trading: Download/Stream -> Clean -> Store. Supports Data Lakehouse Architecture. Clean Once and Forget.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗pfeed: The Single Source of Truth for Algo-Trading Data. Uniting Traders to Clean Once & Share with All.For illustration purposes only, not everything shown is currently supported.
Starting algo-trading requires reliable and clean data, but traders often work in silos, each writing duplicated code to clean the same datasets—wasting time and effort. Accessing clean, ready-to-use data is a challenge, forcing traders to handle tedious data tasks before they can even start trading.
pfeed leverages modern data engineering tools to centralize data cleaning efforts, automate ETL/ELT, store data in a data lake with DeltaLake support, and output backtesting-ready data, allowing traders to focus on strategy development.
pfeed (/piː fiːd/) is the data engine for trading, serving as a pipeline between raw data sources and traders. It enables you to download historical data, stream real-time data, and store cleaned data in a local data lake for quantitative analysis, supporting both batch processing and streaming workflows through streamlined data collection, cleaning, transformation, and storage.
For more installation options, please refer to the documentation.
# pick your data source, e.g. yfinance
pip install "pfeed[yfinance]"
Want to try first? Run
pfeedin your browser — no install needed — at pfeed.pfund.ai.
import pfeed as pe
bybit = pe.Bybit() # initialize data source
feed = bybit.market_feed # this could be {data_source}.news_feed if the data source supports it
Download data from Bybit and get a standardized dataframe
result = feed.download(
product='BTC_USDT_PERP', # or BTC_USDT_PERPETUAL in full
resolution='1minute', # '1tick'/'1t' or '2second'/'2s' etc.
start_date='2026-01-01',
end_date='2026-01-01',
storage_config=pe.StorageConfig(storage='LOCAL'), # store data locally
)
df = result.data.collect() # polars dataframe by default
CryptoHFTData can supply exchange-specific historical crypto trades through the same feed API. PFeed can return ticks directly or resample them into bars:
pip install "pfeed[cryptohftdata]"
import pfeed as pe
result = pe.CryptoHFTData().market_feed.download(
product="BTC_USDT_PERP",
exchange="binance_futures",
symbol="BTCUSDT",
resolution="1m",
start_date="2024-07-13",
end_date="2024-07-13",
)
bars = result.data.collect()
Retrieve downloaded data from storage
result = feed.retrieve(
product='BTC_USDT_PERP',
resolution='1m', # 1-minute data
start_date='2026-01-01',
end_date='2026-01-01',
storage_config=pe.StorageConfig(storage='LOCAL'),
)
df = result.data.collect()
Get streaming data from Bybit
feed.stream(
product='BTC_USDT_PERP',
resolution='1tick', # or just 'tick' for tick data
callback=lambda ws_name, msg: print(ws_name, msg),
)
| Storage | Status |
|---|---|
| LOCAL/CACHE | 🟢 |
| DuckDB | 🟢 |
| LanceDB | 🟢 |
| HuggingFace | 🟢 |
| S3 | 🔴 |
| PostgreSQL/TimescaleDB | 🔴 |
| IO Format | Status |
|---|---|
| Parquet | 🟢 |
| DeltaLake | 🟢 |
| DuckLake | 🔴 |
| Iceberg | 🔴 |
| Vortex | 🔴 |
| Data Source | Data Categories | Download Historical Data | Stream Live Data |
|---|---|---|---|
| Yahoo Finance | Market Data, News Data, Fundamental Data | 🟢 | 🟢 |
| Bybit | Market Data | 🟢 | 🟢 |
| CryptoHFTData | Historical Crypto Market Data | 🟢 | ⚪ |
| *Interactive Brokers | Market Data | ⚪ | 🔴 |
| OKX | Market Data | 🔴 | 🔴 |
| Binance | Market Data | 🔴 | 🔴 |
| Hyperliquid | Market Data | 🔴 | 🔴 |
| *Databento | Market Data | 🔴 | 🔴 |
| *FinancialModelingPrep | Market Data, News Data, Fundamental Data | 🔴 | 🔴 |
| *FirstRate Data | Market Data | 🔴 | ⚪ |
| *Polygon | Market Data | 🔴 | 🔴 |
| *FXMacroData |
🟢 = finished
🟡 = in progress
🔴 = todo
⚪ = not applicable
* = paid data
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This framework is intended for educational and research purposes only. It should not be used for real trading without understanding the risks involved. Trading in financial markets involves significant risk, and there is always the potential for loss. Your trading results may vary. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this platform.
The developers of this framework are not responsible for any financial losses incurred from using this software. This includes but not limited to losses resulting from inaccuracies in any financial data output by PFeed. Users should conduct their due diligence, verify the accuracy of any data produced by PFeed, and consult with a professional financial advisor before engaging in real trading activities.
| Economic Announcement Data |
| 🟢 |
| ⚪ |