MARGIN INFO API
This API is used to fetch margin details in multiple formats based on the specified type. It provides flexibility to retrieve periodicity lists, limit utilization, token-wise margins, and product-type-wise margins.
📌 Path Parameters
| Parameter | Type | Required | Description | Example / Enum |
|---|
| type | string | Yes | Type of margin data to fetch | "list" / "limit" / "tokenwise" / "producttypewise" |
🔍 Query Parameters
| Parameter | Type | Required | Description | Example |
|---|
| client_id | string | No | Client ID to fetch margin details for an end user | client_id=VISHAL1 |
| Header | Type | Description | Example |
|---|
| Content-Type | string | Specifies the media type of the request payload | application/json |
| Authorization | string | Dealer authentication token | Bearer {{access_token}} |
| x-api-key | string | API key used to authorize the request | {{x-api-key}} |
🟢 Success Response - 200 OK
Content-Type: application/json
| Field | Type | Description | Example |
|---|
| status | string | Status of API call | "success" |
| code | string | Response code to user request | "s-112" |
| message | string | Success message | "Margin info fetched successfully" |
| data | object[] | Array of margin details | Refer below |
📦 Data Object Fields (for type = list)
| Field | Type | Description | Example |
|---|
| PeriodicityName | string | Name of the periodicity | "T+1 Balance" |
| nPeriodicity | string | Periodicity ID | "30847" |