Skip to content

API Reference


API Reference / RiskCheck

Interface: RiskCheck

Defined in: src/risk/types.ts:83

One pre-trade check. Throws RiskViolationError to reject; returning normally means the order passed this check.

Properties

name

name: string

Defined in: src/risk/types.ts:84

Methods

run()

run(context): void | Promise<void>

Defined in: src/risk/types.ts:85

Parameters

context

RiskContext

Returns

void | Promise<void>

Community project — not affiliated with Dhan. MIT License.