Skip to content

API Reference


API Reference / maxPain

Function: maxPain() ​

maxPain(data): number | undefined

Defined in: src/analytics/maxPain.ts:20

Max pain: the expiry price at which option writers lose the least, i.e. the strike where the most contracts expire worthless.

Parameters ​

data ​

StrikeOpenInterest[]

Returns ​

number | undefined

Community project — not affiliated with Dhan. MIT License.