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 https://developers.manasija.in
    from market_stack_sdk import AnnouncementsQueryParams, DailySummaryRequest, NewsQueryParams

    print(client.get_news(NewsQueryParams(symbols=["RELIANCE"], limit=10)))
    print(client.get_announcements(AnnouncementsQueryParams(symbols=["RELIANCE"])))
    print(
        client.get_earnings_detail(
            {"symbol": "MEDIASSIST", "quarter": "q4_26", "detailed": True}
        )
    )
    print(
        client.post_daily_summary(
            {
                "body": DailySummaryRequest(
                    portfolio=[{"symbol": "RELIANCE", "exposure": 10}]
                )
            }
        )
    )

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.7.tar.gz (7.1 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.7-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: market_stack_sdk-0.1.7.tar.gz
  • Upload date:
  • Size: 7.1 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.7.tar.gz
Algorithm Hash digest
SHA256 4c406981e25b71a6fc14f0204862495b99d969f4ff7b2cc8bc3ef53d7a6d5cc4
MD5 bb2a776b47275e322608026a25fb6223
BLAKE2b-256 fdb7ac52660e49623a9214c96edb8bace0287055fd8e6a8eb15da9b5f820b2e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for market_stack_sdk-0.1.7.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.7-py3-none-any.whl.

File metadata

File hashes

Hashes for market_stack_sdk-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e100024a7adb172a101275cb42ac0f44c908674855f24c938c1f22548b86e8
MD5 2e0756b73bb02ecfb5299ba2b8dc2634
BLAKE2b-256 8cccae7aa83752a5037ebe66519fc933fce8130ff6e364e2c2b55a7f677fe82b

See more details on using hashes here.

Provenance

The following attestation bundles were made for market_stack_sdk-0.1.7-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