Skip to content

API Reference


API Reference / RequestOptions

Interface: RequestOptions<TBody>

Defined in: src/client/HttpClient.ts:25

Type Parameters

TBody

TBody = unknown

Properties

method

method: HttpMethod

Defined in: src/client/HttpClient.ts:26


url

url: string

Defined in: src/client/HttpClient.ts:27


data?

optional data?: TBody

Defined in: src/client/HttpClient.ts:28


params?

optional params?: Record<string, unknown>

Defined in: src/client/HttpClient.ts:29


headers?

optional headers?: Record<string, string>

Defined in: src/client/HttpClient.ts:30


safeToRetry?

optional safeToRetry?: boolean

Defined in: src/client/HttpClient.ts:31


tier?

optional tier?: "order_api" | "data_api" | "quote_api" | "option_chain" | "non_trading_api"

Defined in: src/client/HttpClient.ts:37

Enforces the documented Dhan rate limit for this endpoint (RATE_LIMITS) in addition to the generic read/write queue. Omit for endpoints without a documented tier-specific limit narrower than the generic default.

Community project — not affiliated with Dhan. MIT License.