Skip to content

API Reference


API Reference / RiskDataProvider

Interface: RiskDataProvider ​

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

Where the account-level checks get their data.

Kept as an interface rather than a hard dependency on DhanClient so checks can be unit-tested with fixtures, and so a caller that already has positions in hand can pass them without a second API call.

Methods ​

positions() ​

positions(): Promise<RiskPosition[]>

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

Returns ​

Promise<RiskPosition[]>


funds() ​

funds(): Promise<RiskFunds>

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

Returns ​

Promise<RiskFunds>

Community project — not affiliated with Dhan. MIT License.