pyalloq-data-connector
pyalloq-data-connector provides vendor-agnostic data adapters for PyAlloq. It handles fetching raw market data from various third-party APIs and automatically standardizes them into pure, time-aligned MarketData objects.
Supported Adapters
YahooFinanceClient: Free adapter using Yahoo Finance (yfinance). No API key required.AlphaVantageClient: Adapter for Alpha Vantage Time Series Daily API.FinnhubClient: Adapter for Finnhub's stock candle endpoint.EODHistoricalDataClient: Adapter for EOD Historical Data API.
Features
- Standardized Output: Automatically converts heterogeneous JSON/DataFrame vendor payloads into
T x Naligned price matrices (MarketData). - Missing Value Handling: Implements forward filling (
ffill) for prices and zero-filling for volume data. - Time Alignment: Constructs unified datetime indices across all requested ticker symbols.
Quick Example
import datetime as dt
from pyalloq_data_connector.yahoo_finance import YahooFinanceClient
client = YahooFinanceClient()
start = dt.datetime(2023, 1, 1)
end = dt.datetime(2024, 1, 1)
# Fetch standardized MarketData object
market_data = client.get_market_data(
tickers=["AAPL", "MSFT", "GOOGL"],
start=start,
end=end
)
print(market_data.prices.head())
print(market_data.features["volume"].head())
Metadata
Release files for pyalloq-data-connector 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyalloq_data_connector-0.1.18.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyalloq_data_connector-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / pyalloq_data_connector-0.1.18.tar.gz
| Download URL | pyalloq_data_connector-0.1.18.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
552aee18d97a25d613ac10fee7de27dfde218e9baa75ea35ead1f21e4a93ef14
|
|
BLAKE2b-256 checksum How to use checksums |
80dc391849272e7cf4b86f8aceb97fe25ba93501de8b3e42f8a9c47cc154ff1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.14 {"installer":{"name":"uv","version":"0.12.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pyalloq_data_connector-0.1.18-py3-none-any.whl
| Download URL | pyalloq_data_connector-0.1.18-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ad4af04f2d7acae9a57360359447fb8d3e4f31c2e1970464f1e6e7f3e2bae97
|
|
BLAKE2b-256 checksum How to use checksums |
20fdca3db6a31fc8fcac312502fce8e3d59e224b21254c8e19d1d88477fac54f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.14 {"installer":{"name":"uv","version":"0.12.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|