Skip to content

API Reference


API Reference / riskReport

Function: riskReport()

riskReport(input): string

Defined in: src/ai/promptHelpers.ts:100

Risk exposure across positions.

P&L is summed over every position, but the count is restricted to open ones — a closed position still contributed realized P&L today.

Parameters

input

positions?

PositionLike[]

maxDrawdownPct?

number

dailyLossLimit?

number

Returns

string

Community project — not affiliated with Dhan. MIT License.