Order

Exit all positions

This API provides the functionality to exit all the positions

post/v2/order/positions/exit

Request

  • Base URL: https://api-v2.upstox.com
  • URL: https://api-v2.upstox.com/v2/order/positions/exit
  • 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)

Query parameters

tagstring

The tag associated with the positions for which the positions must be exit

segmentstring

The segment for which the positions must be exit

Response

Successful

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

Example response

{
  "errors": [
    {
      "instrument_key": "NSE_EQ|INE002A01018"
    }
  ],
  "summary": {
    "total": 3,
    "success": 2,
    "error": 1
  }
}

Changes

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