Groww API SDK
raw JSON → 1.5.0 verified Sat May 09 auth: no python
The foundational SDK for accessing Groww APIs and listening to live data streams. This package provides the core functionalities required to interact with Groww's trading platform. Current version 1.5.0, monthly releases.
pip install growwapi Common errors
error AttributeError: module 'growwapi' has no attribute 'GrowwSDK' ↓
cause Incorrect installation or import path.
fix
Ensure install: pip install growwapi --upgrade and import: from growwapi import GrowwSDK
error ValueError: Invalid API key format ↓
cause API key or access token missing or malformed.
fix
Check environment variables GROWW_ACCESS_TOKEN and GROWW_API_KEY are set correctly.
Warnings
breaking In v1.5.0, the `get_profile` method now requires authentication token; previously it worked without. ↓
fix Ensure you set `access_token` and `api_key` when initializing GrowwSDK.
deprecated The `get_orders` method is deprecated in favor of `get_order_history`. ↓
fix Use `sdk.get_order_history()` instead.
gotcha Rate limiting: API allows max 10 requests per second per IP. Exceeding results in 429 errors. ↓
fix Implement request throttling with exponential backoff.
Imports
- GrowwSDK wrong
from groww import GrowwSDKcorrectfrom growwapi import GrowwSDK
Quickstart
from growwapi import GrowwSDK
sdk = GrowwSDK(access_token=os.environ.get('GROWW_ACCESS_TOKEN', ''), api_key=os.environ.get('GROWW_API_KEY', ''))
# Fetch user profile
profile = sdk.get_profile()
print(profile)