Skip to main content

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 N aligned 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.9

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

Built distribution (wheel)

Table of built distributions (wheels) for pyalloq-data-connector 0.1.9
File Interpreter ABI Platform
pyalloq_data_connector-0.1.9-py3-none-any.whl Python 3 none any Details

Release files / pyalloq_data_connector-0.1.9-py3-none-any.whl

Download URL pyalloq_data_connector-0.1.9-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2b6a4aed6a3e66f2eaf37a6aea9387717aa7e423e12731f352abb20185d83e1
BLAKE2b-256 checksum
How to use checksums
e38979ec7baf107fa9c7b05e3a4991969626802ac3dba3abff1865b13d325fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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 history Release notifications | RSS feed

0.1.18

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

This release

0.1.9 This release

1 release file

0.1.6

1 release file

0.1.4

1 release file

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