your problem solved or not
There are still pending issues:
-
Iâm not able to modify my primary IP. It keeps showing that it can only be changed after six days, which Iâm not sure why, because it was changed last time eight days ago. This is still unresolved.
-
My secondary IP was my static IP which I purchased from my ISP provider. When I was placing an order using that IP, it was not taking the order and showing âinvalid IPâ because it was only considering my primary IP, which is IPv6, which I donât have anymore. I think this is because websites are always giving priority to IPv6.
Then I changed my OS configuration to always give priority to IPv4, and after that, while placing the order it started considering my secondary IP, since I already had IPv4 set as a secondary IP. So somehow I was able to resolve this. But still the first issue remained as it was. -
Iâm not able to modify my buy limit or take profit drag-and-drop lines using the UI for an order placed using API. If I want to modify those take profit or stop loss lines, I have to manually cancel the previously set take profit valuesfrom the UI, and then put TP and SL manually.
-
Iâm not able to place stop loss type orders using the API. It just keeps showing a validation error. {âstatusâ: âfailureâ, âremarksâ: {âerror_codeâ: âDH-906â, âerror_typeâ: âOrder_Errorâ, âerror_messageâ: âBasic Validation Failedâ}, âdataâ: ââ}. It was working fine before 1st April.
CC @Hardik
Hello @vinay_rana8727
- Let me take a look into this. Can you share your Client ID on DM, will directly look into this
- This should not happen, given we accept both IPv4 and IPv6, without any preference.
- This is a limitation from the exchange itself (particularly with NSE) - API based orders are currently not being allowed to modify. We have already informed this to exchange and waiting for their approach on this.
- Are you using Stop Loss Market order by any chance here?
@Hardik @Poornima - Is Full Market Depth down?
-
âIs 200-level depth (wss://full-depth-api.dhan.co/twohundreddepth) enabled?â
-
âIâm getting
ResetWithoutClosingHandshakeon every connection attempt. My 20-level depth works fine. -
Tried even with this Dhan Python SDK URL but still failing by following the below request.
URL: wss://full-depth-api.dhan.co/?token=&clientId=&authType=2
Subscribe JSON: {âRequestCodeâ:23,âExchangeSegmentâ:âNSE_FNOâ,âSecurityIdâ:â40977â}
Error: Protocol(ResetWithoutClosingHandshake) after ~5-30 seconds
Behavior: Connection establishes, subscription sent, server resets without data
Note: 20-level depth works fine. Only 200-level fails consistently.
{âtimestampâ:â2026-04-07T12:48:38.008660+05:30â,âlevelâ:âWARNâ,âfieldsâ:{âmessageâ:âdepth-200lvl-FINNIFTY-ATM: connection failed â will reconnectâ,âattemptâ:31,âerrâ:âConnectionFailed { url: âwss://full-depth-api.dhan.co/twohundreddepthâ, source: Protocol(ResetWithoutClosingHandshake) }â},âtargetâ:âdhan_live_trader_core::websocket::depth_connectionâ,âthreadIdâ:âThreadId(7)â}
{âtimestampâ:â2026-04-07T12:48:38.008680+05:30â,âlevelâ:âWARNâ,âfieldsâ:{âmessageâ:âdepth-200lvl-MIDCPNIFTY-ATM: connection failed â will reconnectâ,âattemptâ:31,âerrâ:âConnectionFailed { url: âwss://full-depth-api.dhan.co/twohundreddepthâ, source: Protocol(ResetWithoutClosingHandshake) }â},âtargetâ:âdhan_live_trader_core::websocket::depth_connectionâ,âthreadIdâ:âThreadId(12)â}
{âtimestampâ:â2026-04-07T12:48:38.013728+05:30â,âlevelâ:âWARNâ,âfieldsâ:{âmessageâ:âdepth-200lvl-BANKNIFTY-ATM: connection failed â will reconnectâ,âattemptâ:31,âerrâ:âConnectionFailed { url: âwss://full-depth-api.dhan.co/twohundreddepthâ, source: Protocol(ResetWithoutClosingHandshake) }â},âtargetâ:âdhan_live_trader_core::websocket::depth_connectionâ,âthreadIdâ:âThreadId(12)â}
@Hardik I have sent you my client id.
-
Are you using Stop Loss Market order by any chance here? - Yes. I am using order_type=DHAN_OBJ.SLM.⌠It was working fine before 1st April. Was there any changes made after 1st April?
-
API based orders are currently not being allowed to modify - Please let us know based on Exchange response.
-
This should not happen, given we accept both IPv4 and IPv6, without any preference - I think this is host specific. On my Windows machine, IPv6 was being prioritized because my ISP provides IPv6 and IPv4 both. As a result, all order requests were being sent over IPv6, which is dynamic and not static.
To resolve this, I changed the priority to prefer IPv4 over IPv6 using the following command:
netsh interface ipv6 set prefixpolicy ::ffff:0:0/96 60 4
@Hardik Any update from the exchange on the issue where orders placed via the Dhan API cannot be modified through the DHAN UI?