Charge

Calculate Margin

Compute Margin

post/v2/charges/margin

Request

  • Base URL: https://api-v2.upstox.com
  • URL: https://api-v2.upstox.com/v2/charges/margin
  • Auth: OAuth 2 (authorization code, authorization URL https://api-v2.upstox.com/v2/login/authorization/dialog, token URL https://api-v2.upstox.com/v2/login/authorization/token)

Request body

Example request

{
  "instruments": [
    {
      "instrument_key": "NSE_EQ|INE669E01016",
      "quantity": 2,
      "transaction_type": "BUY",
      "product": "D"
    },
    {
      "instrument_key": "NSE_EQ|INE848E01016",
      "quantity": 5,
      "transaction_type": "BUY",
      "product": "D"
    }
  ]
}

Response

Successful

status'success' | 'error' | 'partial_success'

Changes

No recorded changes to this operation across all 1 revision of this API.