API Reference / RiskViolationError
Class: RiskViolationError
Defined in: src/errors/RiskViolationError.ts:7
A pre-trade risk check rejected the order. Raised by the risk pipeline before anything reaches the broker, so no order was placed.
Extends
Constructors
Constructor
new RiskViolationError(
check,message,details?):RiskViolationError
Defined in: src/errors/RiskViolationError.ts:11
Parameters
check
string
message
string
details?
unknown
Returns
RiskViolationError
Overrides
Properties
code
readonlycode:string
Defined in: src/errors/DhanError.ts:2
Inherited from
status?
readonlyoptionalstatus?:number
Defined in: src/errors/DhanError.ts:3
Inherited from
details?
readonlyoptionaldetails?:unknown
Defined in: src/errors/DhanError.ts:4
Inherited from
cause?
readonlyoptionalcause?:unknown
Defined in: src/errors/DhanError.ts:5
Inherited from
check
readonlycheck:string
Defined in: src/errors/RiskViolationError.ts:9
Name of the check that rejected the order, e.g. "quantity".