API Reference / LiveTradingDisabledError
Class: LiveTradingDisabledError
Defined in: src/errors/LiveTradingDisabledError.ts:9
A write tool was invoked without the live-trading gate open.
Agent and MCP write paths require both DHANHQ_MCP_ENABLE_WRITES=true and LIVE_TRADING=true, so an agent cannot place orders by default.
Extends
Constructors
Constructor
new LiveTradingDisabledError(
message?):LiveTradingDisabledError
Defined in: src/errors/LiveTradingDisabledError.ts:10
Parameters
message?
string = "Write tools require DHANHQ_MCP_ENABLE_WRITES=true and LIVE_TRADING=true"
Returns
LiveTradingDisabledError
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