Skip to main content

Official Python client for the QuantPad market-data API

Project description

QuantPad Data Python SDK

pip install quantpad-data
export QUANTPAD_API_KEY=qp_live_...
import time
import quantpad_data as qpd

end = int(time.time() * 1000)
bars = qpd.get_bars("ES.FUT", "1m", end - 86_400_000, end)

for chunk in qpd.get_ticks(
    "AAPL", "trades", end - 3_600_000, end, columns=["t", "price", "size"]
):
    print(chunk.head())

matches = qpd.get_universe("apple", asset_class="equity")
coverage = qpd.get_coverage("AAPL")

QuantPadClient (also available as Client) accepts api_key=, base_url=, and max_retries=. The default client honors Retry-After and uses exponential backoff for transient failures. QuantPad notebooks remain compatible through QUANTPAD_NOTEBOOK_DATA_TOKEN.

Bars preserve the notebook helper's OHLCV aliases and smart futures back-adjustment default. Tick timestamps are epoch nanoseconds. Install quantpad-data[rth] for XNYS regular-session helpers.

This SDK intentionally exposes only bars, ticks, universe, coverage, and symbology. It does not proxy FRED or SEC EDGAR.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantpad_data-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantpad_data-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file quantpad_data-0.1.0.tar.gz.

File metadata

  • Download URL: quantpad_data-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantpad_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6cd9514491925f9f8d905771ce49db1c2606d6cf8df757ba039ee0149a26f65a
MD5 ca6368c4b5ee5dee7d657a81fdc0dfe9
BLAKE2b-256 d548f8528d78845a785e2dcfa7550f401ee54805d21e2a4e34360b6dc8d63da5

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantpad_data-0.1.0.tar.gz:

Publisher: python-sdk-publish.yml on QuantPad/quantpad-data-service

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quantpad_data-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantpad_data-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantpad_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c70ac97ec444c704b72c50299d248690db39490adf6fb07b087326e83f32755c
MD5 f4ec1bcccc7e2bd40376014ebfef2f41
BLAKE2b-256 cb0722cd986a101d58fca4122acd9805ec77ad08cf5b7f5697a85bf505304219

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantpad_data-0.1.0-py3-none-any.whl:

Publisher: python-sdk-publish.yml on QuantPad/quantpad-data-service

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page