Groww LogoGroww API

Margin

This guide describes how to calculate required margin for orders and get available user margin using the SDK.

Get Available User Margin

GET https://api.groww.in/v1/margins/detail/user

Easily retrieve your margin details using this API.

Request

# You can also use wget
curl -X GET https://api.groww.in/v1/margins/detail/user \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'X-API-VERSION: 1.0'

Response

All prices in rupees.

{
  "status": "SUCCESS",
  "payload": {
    "clear_cash": 5000,
    "net_margin_used": 35000,
    "brokerage_and_charges": 200,
    "collateral_used": 3000,
    "collateral_available": 7000,
    "adhoc_margin": 1500,
    "fno_margin_details": {
      "net_fno_margin_used": 15000,
      "span_margin_used": 7000,
      "exposure_margin_used": 4000,
      "future_balance_available": 3000,
      "option_buy_balance_available": 11000,
      "option_sell_balance_available": 1000
    },
    "equity_margin_details": {
      "net_equity_margin_used": 10000,
      "cnc_margin_used": 5000,
      "mis_margin_used": 3000,
      "cnc_balance_available": 9000,
      "mis_balance_available": 1000
    }
  }
}

Response Schema

NameTypeDescription
statusstringSUCCESS if request is processed successfully, FAILURE if the request failed
clear_cashdecimalClear cash available
net_margin_useddecimalNet margin used
brokerage_and_chargesdecimalBrokerage and charges
collateral_useddecimalCollateral used
collateral_availabledecimalCollateral available
adhoc_margindecimalAdhoc margin available
net_fno_margin_useddecimalNet FnO margin used
span_margin_useddecimalSpan Margin Used
exposure_margin_useddecimalExposure Margin Used
future_balance_availabledecimalFuture Balance Available
option_buy_balance_availabledecimalOption Buy Balance Available
option_sell_balance_availabledecimalOption Sell Balance Available
net_equity_margin_useddecimalNet equity margin used
cnc_margin_useddecimalCNC margin used
mis_margin_useddecimalMIS margin used
cnc_balance_availabledecimalCNC balance available
mis_balance_availabledecimalMIS balance available

Required Margin For Order

POST https://api.groww.in/v1/margins/detail/orders

Calculate the required margin for a single order or basket of orders using this API. Basket orders are only supported for FNO Segment.

Request

# You can also use wget
curl -X POST https://api.groww.in/v1/margins/detail/orders?segment=CASH \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'X-API-VERSION: 1.0'

Body parameter

[
  {
    "trading_symbol": "WIPRO",
    "transaction_type": "BUY",
    "quantity": 1,
    "price": 100, // Optional: Price (include for limit orders; omit or adjust if not applicable).
    "order_type": "LIMIT",
    "product": "CNC",
    "exchange": "NSE"
  }
]

Request schema

NameTypeDescription
trading_symbol *stringTrading Symbol of the instrument as defined by the exchange
quantity *integerQuantity of the instrument to order
pricedecimalPrice of the instrument in rupees case of Limit order
exchange *stringStock exchange
segment *stringSegment of the instrument such as CASH, FNO etc.
product *stringProduct type
order_type *stringOrder type
transaction_type *stringTransaction type of the trade

*required parameters

Response

All prices in rupees.

{
  "status": "SUCCESS",
  "payload": {
    "exposure_required": 1000,
    "span_required": 1000,
    "option_buy_premium": 140,
    "brokerage_and_charges": 15,
    "total_requirement": 2115,
    "cash_cnc_margin_required": 310,
    "cash_mis_margin_required": 800,
    "physical_delivery_margin_requirement": 100
  }
}

Response Schema

NameTypeDescription
statusstringSUCCESS if request is processed successfully, FAILURE if the request failed
exposure_requireddecimalRequired exposure for the order
span_requireddecimalRequired span margin for the order
option_buy_premiumdecimalBuy premium required for the order
brokerage_and_chargesdecimalBrokerage and Charges applied for the orders
total_requirementdecimalNet margin required
cash_cnc_margin_requireddecimalMargin required applicable for CNC orders
cash_mis_margin_requireddecimalMargin required applicable for MIS orders
physical_delivery_margin_requirementdecimalPhysical delivery margin required if applicable

On this page