Skip to content

API Reference


API Reference / openInterestFromChain

Function: openInterestFromChain()

openInterestFromChain(chain): StrikeOpenInterest[]

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

Extracts the open-interest view a max-pain calculation needs from a chain.

Parameters

chain

NormalizedOptionChain

Returns

StrikeOpenInterest[]

Community project — not affiliated with Dhan. MIT License.