Trader's Control

get P&L based exit

Changed on

The Get P&L Based Exit API allows users to fetch the currently active P&L based exit configuration, including profit/loss thresholds and exit behavior.
Notes : Returns the active P&L based exit configuration for the current trading day, if any

get/pnlExit

Request

  • Base URL
    https://api.dhan.co/v2
  • URL
    https://api.dhan.co/v2/pnlExit
  • Auth
    none declared. Required headers: access-token

Headers

access-tokenstring required

Response

Successful operation

pnlExitStatusstring

Current status of the PNL exit operation

profitnumber float

User-defined target profit amount for the PNL exit

lossnumber float

User-defined target loss amount for the PNL exit

enableKillSwitchboolean

Indicates if the kill switch is enabled for this PNL exit

productTypestring[]
Enum ValuesDescription
INTRADAYIntraday for Equity, Futures & Options
DELIVERYDelivery for equity deliveries

Changes