Skip to main content

Unofficial Python SDK for Groww APIs (sync + async), with typed models.

Project description

pyGrowwAPI

📈 Unofficial Python client for Groww Stock Market Data (NSE).

Easily fetch live quotes and historical OHLCV candles for Indian stocks using Groww's web APIs.


🚀 Installation

pip install pyGrowwAPI

📌 Quick Start

from pyGrowwAPI.client import GrowwClient

# Initialize client
client = GrowwClient()

# Get live stock quotes
quotes = client.get_quotes("SBIN")
print(quotes)

# Get historical OHLCV data
candles = client.history_price("SBIN", "30day", "1day")
for c in candles[:5]:
    print(c.timestamp, c.open, c.close)

🔹 API Documentation

GrowwClient

Main client to interact with Groww's API.


get_quotes(symbol: str) -> dict

Fetch the latest OHLC (Open, High, Low, Close) and other market data for a stock.

  • symbol (str): Stock symbol, e.g., "SBIN", "TCS".
  • returns: dict JSON response with latest prices.

history_price(symbol: str, range_period: str, interval: str) -> list[Candle]

Fetch historical candlestick (OHLCV) data for a stock.

  • symbol (str): Stock symbol, e.g., "SBIN", "INFY".
  • range_period (str): Time span of data.
    • Format → "<number><unit>"
    • Units: day, week, month, year
    • Examples: "30day", "2week", "6month", "5year"
  • interval (str): Candlestick interval.
    • Format → "<number><unit>"
    • Units: min, hour, day, week, month, year
    • Examples: "1min", "15min", "1hour", "1day"
  • returns: list[Candle]

Candle Model

Represents a single OHLCV (Open, High, Low, Close, Volume) candle.

Attribute Type Description
timestamp datetime Candle start time (IST)
open float Opening price
high float Highest price
low float Lowest price
close float Closing price
volume int Traded volume

✅ Examples

Fetching 5 years of daily candles

candles = client.history_price("TCS", "5year", "1day")
print(len(candles))  # number of daily candles

Fetching intraday 15-minute candles

candles = client.history_price("INFY", "7day", "15min")
for c in candles[:10]:
    print(c.timestamp, c.close)

⚠️ Disclaimer

  • This package uses Groww’s public endpoints, which are undocumented.
  • Groww may change or restrict these APIs at any time.
  • Use this package for educational / personal projects only.

📜 License

MIT License © 2025 Your Name

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

pygrowwapi-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

pygrowwapi-0.2.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pygrowwapi-0.2.0.tar.gz.

File metadata

  • Download URL: pygrowwapi-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for pygrowwapi-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a86b3b68eddab322f41fc702db01efe2d5f48d7aff6df160bdbe7742dc700b46
MD5 fe605a0fbe07f80a196c3d21f9bd8ce3
BLAKE2b-256 02a8b9a687436670c261fb21e1a0964d33357ab07e5e5a378498b27141c62023

See more details on using hashes here.

File details

Details for the file pygrowwapi-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pygrowwapi-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for pygrowwapi-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13825d8bf7e16aba173f54f7d021aa2f09f4025b89cab7df63cdcb1606c3507d
MD5 9fe3eebc1a8426288aecc6c5f804801e
BLAKE2b-256 0e388511cf490486c2555ba7f112d66488b578f144e6866961ec53555bec7f8e

See more details on using hashes here.

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