Skip to main content

Python client for the Alpha API (/v1)

Project description

market-stack-sdk (Python)

HTTP client for Alpha API (/v1).

Install

From this directory:

pip install .

Usage

from market_stack_sdk import MarketStackClient

with MarketStackClient(api_key="YOUR_API_KEY") as client:
    # Defaults to ALPHA_API_BASE_URL (or http://127.0.0.1:8000)
    print(client.get("/v1/announcements"))
    print(client.get("/v1/announcements/{announcement_id}", path_params={"announcement_id": "67c2f8a1b2c3d4e5f6a7b8c9"}))
    print(
        client.post(
            "/v1/daily-summary/generate",
            body={"portfolio": [{"symbol": "RELIANCE", "qty": 10}]},
            params={"page": 1, "limit": 20},
        )
    )
    # Dedicated helpers are available for every public route:
    print(client.get_announcements())
    print(client.get_announcements_announcement_id(announcement_id="67c2f8a1b2c3d4e5f6a7b8c9"))

All calls automatically send X-API-Key from the provided api_key.

Use get, post, put, patch, delete, or request for any public /v1 endpoint.

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

market_stack_sdk-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

market_stack_sdk-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file market_stack_sdk-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for market_stack_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70ad42ec424c17699a80700afbf7dcb08d4cba517ed8b4b9b9e2d37fca3e9b30
MD5 899c3b9af6a7d261000dd51e76282ecd
BLAKE2b-256 6a7558a4f5acdd2b2758e0af035f66d05c861b959d2ce3d7d7840156c319ba1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for market_stack_sdk-0.1.1.tar.gz:

Publisher: publish-pypi.yml on manasijatech/Market-Stack-SDK

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

File details

Details for the file market_stack_sdk-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for market_stack_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 469c174d80d85cd81db1d0c4c4f21e7c2a28784c69defba1e281e4236d9aaef4
MD5 27b163ceec10c3d585f521ac03e08dd4
BLAKE2b-256 72e797055a0b5455f9468fa78d401c647cb3eb2704fc27c85d5135d90c5df30b

See more details on using hashes here.

Provenance

The following attestation bundles were made for market_stack_sdk-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on manasijatech/Market-Stack-SDK

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