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
    print(client.get("/v1/news"))
    print(client.get("/v1/earnings/{earnings_id}", path_params={"earnings_id": "67c2f8a1b2c3d4e5f6a7b8d0"}))
    print(
        client.post(
            "/v1/daily-summary",
            body={"portfolio": [{"symbol": "RELIANCE", "exposure": 10}]},
        )
    )
    # Dedicated helpers are available for every public route:
    print(client.get_news())
    print(client.get_announcements())
    print(client.get_earnings_earnings_id(earnings_id="67c2f8a1b2c3d4e5f6a7b8d0"))

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: market_stack_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 5.3 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.2.tar.gz
Algorithm Hash digest
SHA256 af9a2094a16ab8774dc32bb73ae6e9ee308c65feb6b74c5e2f680be9b3f60e8b
MD5 47b7df63efdcdc8cbfbc21fd62f40e94
BLAKE2b-256 8042cc8e60657d310ff4a55f264434612b47e7f16ed7ce73008ba6d45b790579

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for market_stack_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbfc52fa42280b8b794fac4f1d4c15ad3a2f7953f1180604abee0308751bd7bb
MD5 b277c630779a98ec04d39c90af398f34
BLAKE2b-256 e7177a91f8940083ba53749e33c7ea4225ed62fe02a056b2c60fcbfb267735b4

See more details on using hashes here.

Provenance

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