Groww LogoGroww API

User

This guide describes how to retrieve user profile information and account details using the SDK.

Get User Profile

Retrieve detailed information about the authenticated user's trading account, including unique identifiers, exchange access permissions, enabled trading segments, and DDPI authorization status.

Python SDK Usage

from growwapi import GrowwAPI
 
# Groww API Credentials (Replace with your actual credentials)
API_AUTH_TOKEN = "your_token"
 
# Initialize Groww API
groww = GrowwAPI(API_AUTH_TOKEN)
 
user_profile_response = groww.get_user_profile()
print(user_profile_response)

Response

{
  "vendor_user_id": "d86890d1-c60d-4ebd-9730-4feee5451670",
  "ucc": "924189",
  "nse_enabled": true,
  "bse_enabled": true,
  "ddpi_enabled": false,
  "active_segments": [
    "CASH",
    "FNO",
    "COMMODITY"
  ]
}

Response Schema

NameTypeDescription
vendor_user_idstringUnique identifier of the user
uccstringUnique Client Code (UCC) of the user
nse_enabledbooleanWhether trading is enabled on National Stock Exchange (NSE) for this user
bse_enabledbooleanWhether trading is enabled on Bombay Stock Exchange (BSE) for this user
ddpi_enabledbooleanDDPI (Demat Debit and Pledge Instruction) status. When enabled, allows the broker to debit securities from the user's Demat account for transactions like selling shares or pledging them for margin, without requiring TPIN and OTP authorization for each transaction
active_segmentsarray[string]List of trading segments active for the user such as CASH, FNO, COMMODITY etc.

On this page