Introduction
Guide explaining the usage of apis
Getting Started
Generate Access Token
- Go to Trading APIs page in Groww.
- Click on Generate Token.
- Copy token.
API Request and Response structure
Headers
All requests must have following headers. Providing the generated access token in the Authorization header .
Header Name | Header Value |
---|---|
Authorization | Bearer {API_KEY} |
Accept | application/json |
Request structure
GET Requests: Send the required parameters as query parameters in the request. For example,
POST Requests: Parameters are sent in the request body as JSON. For example,
Responses from the API are always JSON.
Successful Request (HTTP 200 OK)
When a request is successfully processed, the API returns a JSON object with a status field set to SUCCESS. The payload field contains the requested data.
Failed Request (HTTP 40x or 50x)
If a request fails, the API returns a JSON object with a status field set to FAILURE. The error field contains details about the failure.
Error Codes
Code | Message |
---|---|
GA000 | Internal error occurred |
GA001 | Bad request |
GA003 | Unable to serve request currently |
GA004 | Requested entity does not exist |
GA005 | User not authorised to perform this operation |
GA006 | Cannot process this request |
GA007 | Duplicate order reference id |