API Reference
API Reference
Namespaces
Classes
- Policy
- AgentToolRegistry
- GreeksCalculator
- AuthResolver
- DhanAuth
- TokenManager
- TokenResponse
- Backtester
- CircuitBreaker
- DhanClient
- GeneratedClient
- HttpClient
- RateLimiter
- ApiResponseError
- AuthenticationError
- CircuitOpenError
- DhanError
- LiveTradingDisabledError
- NetworkError
- RateLimitError
- RiskViolationError
- ValidationError
- OrderTracker
- PositionLedger
- PositionMonitor
- InvalidParamsError
- UnknownMethodError
- McpServer
- Alerts
- Charts
- ConditionalTriggers
- Edis
- ExpiredOptionsData
- ForeverOrders
- Funds
- GlobalStocksOrders
- GlobalStocksHoldings
- GlobalStocksTrades
- GlobalStocksFunds
- GlobalStocksMarketStatus
- GlobalStocksMarginCalculator
- GlobalStocks
- Instruments
- IpSetup
- MarginCalculator
- MarketFeed
- OptionChain
- Orders
- Positions
- Profile
- Statements
- SuperOrders
- TraderControls
- Pipeline
- TrailManager
- SkillRegistry
- Skill
- Workflow
- CoveredCallSkill
- ProtectivePutSkill
- MarketDataSummarizerSkill
- BuyAtmCallSkill
- StraddleSkill
- StrangleSkill
- IronCondorSkill
- BullPutSpreadSkill
- BearCallSpreadSkill
- SquareOffAllSkill
- SquareOffPositionSkill
- TechnicalAnalysis
- BaseWS
- CandleAggregator
- DhanWS
- MarketDepthWS
- MarketFeedWS
- OrderUpdateWS
- WebSocketManager
- LTPStore
- OrderStore
Interfaces
- OrderPreviewResult
- OrderPreviewOptions
- PolicyOptions
- ToolExample
- Tool
- ToolRegistryOptions
- Capabilities
- CatalogueDependencies
- HoldingLike
- PositionLike
- FundsLike
- GreeksInput
- GreeksCalculatorConfig
- BlackScholesInput
- Greeks
- ImpliedVolatilityInput
- StrikeOpenInterest
- MaxPainDetail
- OiConcentration
- GenerateAccessTokenRequest
- RenewWebTokenRequest
- DhanAuthDependencies
- TotpOptions
- EnableAutoTokenManagementOptions
- RawTokenResponse
- EntrySignal
- OpenPosition
- ClosedTrade
- SkippedSignal
- EquityPoint
- BacktestMetrics
- BacktestResult
- IndicatorAccessors
- StrategyContext
- CostModel
- BacktestConfig
- CircuitBreakerOptions
- DhanClientDependencies
- RequestOptions
- HttpClientDependencies
- RateLimiterConfig
- DhanApiErrorBody
- RateLimitErrorOptions
- OrderOutcome
- OrderTrackerEvents
- WaitOptions
- Fill
- LedgerPosition
- PositionExposure
- MonitoredPosition
- ExitSignal
- PositionUpdate
- PositionMonitorEvents
- ResourceDefinition
- PromptDefinition
- McpServerOptions
- PlaceAlertRequest
- ModifyAlertRequest
- IntradayChartsInput
- HistoricalChartsInput
- OptionChartInput
- ExtendedIntradayChartsRequest
- ExtendedHistoricalChartsRequest
- AlertConditionInput
- AlertOrderInput
- PlaceConditionalTriggerRequest
- EdisFormInput
- EdisBulkFormInput
- ExpiredOptionsDataRequest
- ExpiredOptionsDataPoint
- ExpiredOptionsDataResponse
- PlaceForeverOrderRequest
- ModifyForeverOrderRequest
- KnowYourMarginInput
- MultiScripMarginInput
- Instrument
- InstrumentSearchOptions
- InstrumentsConfig
- MarginScriptItem
- LtpQuote
- OhlcQuote
- DepthLevel
- FullQuote
- MarketFeedResponse
- OptionChainRequest
- ExpiryListRequest
- OptionGreeks
- OptionLeg
- RawOptionChainResponse
- ExpiryListResponse
- StrikeEntry
- NormalizedOptionChain
- ConvertPositionRequest
- ProfileResponse
- LedgerRequest
- PipelineConfig
- PipelineRunOptions
- RiskReport
- FixedRiskSizingInput
- KellySizingInput
- VolatilitySizingInput
- TrailUpdate
- RiskPosition
- RiskFunds
- RiskDataProvider
- RiskOrderArgs
- RiskLimits
- RiskContext
- RiskCheck
- SkillListing
- SkillParam
- SkillDefinition
- SkillContext
- SkillStep
- ResolvedChain
- WorkflowStep
- IntentLeg
- TechnicalAnalysisOptions
- ComputeRequest
- TimeframeIndicators
- TechnicalAnalysisResult
- Candle
- ChartSeries
- OhlcBar
- MacdResult
- BollingerBandsResult
- AdxResult
- StochasticResult
- SupertrendResult
- MarketSessionInfo
- DateRangeInput
- DateAdjustmentOptions
- AdjustedDateRange
- TimeframeClassification
- MultiTimeframeSummary
- DhanClientConfig
- CorrelatedRequest
- OrderOperationResult
- InstrumentSubscription
- TickEvent
- GlobalPlaceOrderRequest
- GlobalModifyOrderRequest
- GlobalOrderResponse
- GlobalHoldingResponse
- GlobalTradeResponse
- GlobalFundsResponse
- GlobalMarketStatusResponse
- GlobalEstimateRequest
- GlobalOrderEstimateResponse
- GlobalMarginResponse
- GlobalOrderCostSummary
- PlaceOrderRequest
- ModifyOrderRequest
- CancelOrderRequest
- TradeHistoryRequest
- OrderResponse
- TradeResponse
- PlaceSuperOrderRequest
- ModifySuperOrderRequest
- CancelSuperOrderRequest
- SuperOrderResponse
- MarketDepthLevel
- MarketPacketHeader
- MarketTickerEvent
- MarketPrevCloseEvent
- MarketQuoteEvent
- MarketOiEvent
- MarketFullEvent
- MarketDisconnectEvent
- OrderUpdateEvent
- OrderState
- MarketDepth20Level
- MarketDepth20Event
- MarketDepth200Event
- MarketFeedWSOptions
- MarketDepthWSOptions
- OrderUpdateWSOptions
- DhanWSOptions
- Logger
- WebSocketLike
- StoredSubscription
- CandleAggregatorOptions
- MarketFeedWSOptionsWithLogger
- OrderUpdateWSOptionsWithLogger
- WebSocketManagerConfig
- OptionContractMetadata
Type Aliases
- ReadScope
- WriteScope
- AgentScope
- ToolRisk
- JsonSchema
- ToolDescriptor
- TickWithGreeks
- OptionKind
- TokenResponseData
- Side
- FillDirection
- StrategySignal
- BacktestExitReason
- SkipReason
- Strategy
- CircuitState
- ExitReason
- ModifyConditionalTriggerRequest
- MarketFeedInstruments
- RiskInstrumentKind
- SkillParamType
- TimeframeKey
- IndicatorSeries
- MarketSessionState
- Momentum
- TrendStrength
- Signal
- Bias
- Setup
- GlobalOrderType
- GlobalLegName
- TransactionType
- ExchangeSegment
- ProductType
- OrderType
- Validity
- SuperOrderProductType
- SuperOrderType
- SuperOrderLeg
- MarketFeedMode
- MarketFeedEvent
- MarketDepthEvent
- MarketDepthMode
Variables
- READ_SCOPES
- WRITE_SCOPES
- ALL_SCOPES
- DEFAULT_TOOL_VERSION
- AUTH_BASE_URL
- API_BASE_URL
- globalPlaceOrderSchema
- globalModifyOrderSchema
- globalEstimateSchema
- orderSchema
- superOrderSchema
- TERMINAL_ORDER_STATUSES
- SUPPORTED_PROTOCOL_VERSIONS
- DEFAULT_TOOL_CALL_TIMEOUT_MS
- ErrorCode
- RESOURCES
- PROMPTS
- BASE_CHECKS
- OPTION_CHECKS
- DAILY_CHECKS
- tradingPermissionCheck
- asmGsmCheck
- productSupportCheck
- orderTypeCheck
- quantityCheck
- marketHoursCheck
- positionLimitsCheck
- concentrationCheck
- maxLossCheck
- optionsCheck
- DEFAULT_RISK_LIMITS
- TIMEFRAMES
- MARKET_HOLIDAYS
Functions
- previewOrder
- describeTool
- isWriteTool
- riskProviderFor
- buildCatalogue
- systemPrompt
- portfolioSummary
- riskReport
- marketAnalysis
- orderConfirmation
- price
- greeks
- impliedVolatility
- normalCdf
- normalPdf
- erf
- yearsToExpiry
- maxPain
- detailedMaxPain
- putCallRatio
- volumePutCallRatio
- openInterestFromChain
- highestCallOi
- highestPutOi
- parseExpiry
- buildCursor
- computeMetrics
- parseDhanErrorBody
- applyFill
- parseCsv
- normalizeOptionChain
- nearestStrike
- findStrike
- riskTypeFor
- availableBalance
- fixedRiskSize
- kellySize
- volatilitySize
- percentageStop
- atrStop
- supportStop
- takeProfit
- legSide
- legSecurityId
- legPremium
- resolveChain
- resolveIndexChain
- resolveEquityChain
- builtinSkills
- createSkillRegistry
- parseTimestamp
- candlesFromSeries
- resample
- closes
- highs
- lows
- volumes
- sma
- wma
- ema
- rsi
- macd
- bollingerBands
- trueRanges
- atr
- adx
- stochastic
- supertrend
- vwap
- obv
- latest
- toIstDateString
- fromDateString
- addDays
- isWeekday
- isTradingDay
- lastTradingDay
- previousTradingDay
- todayOrLastTradingDay
- tradingDaysAgo
- getMarketSessionInfo
- adjustTradingDateRange
- analyzeMultiTimeframe
- parseMarketDepth20Packet
- parseMarketDepth200Packet
- parseMarketDepthPacket
- parseMarketFeedPacket
- splitPackets