API Reference / DhanWSOptions
Interface: DhanWSOptions
Defined in: src/types/ws.types.ts:172
Extended by
Properties
token?
optionaltoken?:string
Defined in: src/types/ws.types.ts:173
clientId
clientId:
string
Defined in: src/types/ws.types.ts:174
marketFeedUrl?
optionalmarketFeedUrl?:string
Defined in: src/types/ws.types.ts:175
orderUpdateUrl?
optionalorderUpdateUrl?:string
Defined in: src/types/ws.types.ts:176
depthUrl?
optionaldepthUrl?:string
Defined in: src/types/ws.types.ts:177
reconnectDelayMs?
optionalreconnectDelayMs?:number
Defined in: src/types/ws.types.ts:178
maxReconnectDelayMs?
optionalmaxReconnectDelayMs?:number
Defined in: src/types/ws.types.ts:179
maxReconnectAttempts?
optionalmaxReconnectAttempts?:number
Defined in: src/types/ws.types.ts:180
marketSocketFactory?
optionalmarketSocketFactory?: (url) =>WebSocketLike
Defined in: src/types/ws.types.ts:181
Parameters
url
string
Returns
orderSocketFactory?
optionalorderSocketFactory?: (url) =>WebSocketLike
Defined in: src/types/ws.types.ts:182
Parameters
url
string
Returns
depthSocketFactory?
optionaldepthSocketFactory?: (url) =>WebSocketLike
Defined in: src/types/ws.types.ts:183
Parameters
url
string
Returns
tokenProvider?
optionaltokenProvider?: () =>string|Promise<string>
Defined in: src/types/ws.types.ts:184
Returns
string | Promise<string>
orderUserType?
optionalorderUserType?:"SELF"|"PARTNER"
Defined in: src/types/ws.types.ts:185
partnerId?
optionalpartnerId?:string
Defined in: src/types/ws.types.ts:186
partnerSecret?
optionalpartnerSecret?:string
Defined in: src/types/ws.types.ts:187
logger?
optionallogger?:Logger
Defined in: src/types/ws.types.ts:188