Skip to content

API Reference


API Reference / HoldingLike

Interface: HoldingLike

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

Prompt construction for AI trading assistants.

These render account and market state into text an LLM can reason over — they never call the API themselves, so a caller decides what data to fetch and how fresh it needs to be.

Indexable

[key: string]: unknown

Properties

tradingSymbol?

optional tradingSymbol?: string

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


securityId?

optional securityId?: string

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


totalQty?

optional totalQty?: number

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


avgCostPrice?

optional avgCostPrice?: number

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

Community project — not affiliated with Dhan. MIT License.