Skip to content

API Reference


API Reference / ProtectivePutSkill

Class: ProtectivePutSkill ​

Defined in: src/skills/builtin/equityOverlays.ts:145

Hold the stock, buy an OTM put as downside insurance.

Extends ​

  • EquityOverlaySkill

Constructors ​

Constructor ​

new ProtectivePutSkill(): ProtectivePutSkill

Returns ​

ProtectivePutSkill

Inherited from ​

EquityOverlaySkill.constructor

Properties ​

definition ​

readonly definition: SkillDefinition

Defined in: src/skills/builtin/equityOverlays.ts:146

Overrides ​

EquityOverlaySkill.definition

Methods ​

call() ​

call(args, client): Promise<EquityOverlayContext>

Defined in: src/skills/Skill.ts:58

Runs every step in order and returns the final context.

Parameters ​

args ​

Record<string, unknown>

client ​

DhanClient

Returns ​

Promise<EquityOverlayContext>

Inherited from ​

EquityOverlaySkill.call


stepNames() ​

stepNames(): string[]

Defined in: src/skills/Skill.ts:73

Step names in execution order, for tool listings and docs.

Returns ​

string[]

Inherited from ​

EquityOverlaySkill.stepNames


buildContext() ​

protected buildContext(args, client): EquityOverlayContext

Defined in: src/skills/Skill.ts:77

Parameters ​

args ​

Record<string, unknown>

client ​

DhanClient

Returns ​

EquityOverlayContext

Inherited from ​

EquityOverlaySkill.buildContext


validate() ​

protected validate(context): void

Defined in: src/skills/Skill.ts:91

Parameters ​

context ​

Record<string, unknown>

Returns ​

void

Inherited from ​

EquityOverlaySkill.validate


steps() ​

protected steps(): SkillStep<EquityOverlayContext>[]

Defined in: src/skills/builtin/equityOverlays.ts:52

Returns ​

SkillStep<EquityOverlayContext>[]

Inherited from ​

EquityOverlaySkill.steps


requireChain() ​

protected requireChain(context): object

Defined in: src/skills/builtin/equityOverlays.ts:70

Parameters ​

context ​

EquityOverlayContext

Returns ​

object

chain ​

chain: NormalizedOptionChain

spot ​

spot: number

Inherited from ​

EquityOverlaySkill.requireChain


buildIntent() ​

protected buildIntent(context): EquityOverlayContext

Defined in: src/skills/builtin/equityOverlays.ts:162

Parameters ​

context ​

EquityOverlayContext

Returns ​

EquityOverlayContext

Overrides ​

EquityOverlaySkill.buildIntent

Community project — not affiliated with Dhan. MIT License.