Now Live: Live Market Feed on DhanHQ Trading APIs

Hello @sathishmuppudathi

Can you share code snippet, where you are adding Client ID and Access token?

Hello @sathishmuppudathi

There is no Data API subscription activated for this ID. Can you go to web.dhan.co > Profile > DhanHQ Trading APIs and check once?

Here its showing already subscriped

@sathishmuppudathi

Can you raise it on help@dhan.co with this thread link, will ask the team to take a look and assist you further.

@Hardik @PravinJ
any plans to provide historical data via dhan APIs? like 1-minute OHLC for 1 year or something like that, so that we can also use Dhan APIs in Quantower for charting.

its very noisy we all traders are unhappy for the chargers we not axpecting these from dhan team because whatever the dhan is doing for traders we all are happy @t7support @RahulDeshpande @Hardik @PravinJ @Champion_Trader @shraddha champion and t7 what do you think

Hello @HIR

Not right now. We are however extending our API offering very soon, so stay tuned for that.

@Vaibhav1007 can you explain a little more on this?

1 Like

bro my concern is about charges because whatever Dhan is doing for we all traders it is best trading platform that i saw in my life but now the are charged for like if you want any other facilities then you need to pay for to used these in short you need to subscribed that’s what i want to say


service

Hi @Hardik
I tried using JS library GitHub - dhan-oss/DhanHQ-js: NodeJS client for communicating with the DhanHQ API. but seems not working. While runing my Node JS code it stuckes at “Connected to DhanHQ WebSocket, Total instruments: 2”
Please help me with this.

Hello @jay.m0403

Welcome to MadeForTrade community!

Alright. Is there any error that you are getting along with this?

No, only those 2 lines which I mentioned in my earlier message

@vinay_sd17 if you can take a look into the library?

Sure @Hardik Will fix it. (ETA) 23 Sep 2024

It is fixed in v1.0.6 Please check now

1 Like

Hi @vinay_sd17

It seems still not working. Only getting below response:

Authorizing your token…
Authorization successful!
WebSocket connection established & authorized successfully
Connected to DhanHQ WebSocket
Total instruments: 2

It’s working fine. I have created a Replit project for you to look around.

Link: DhanHQ JsTs SDK Demo - Replit

PS: As the NSE is closed LiveFeeds are not coming. Try MCX, Feeds are working fine.

Yes, I tried MCX. It’s working fine.
Thanks for your response.

1 Like

Please help me to see OI data in “Quote”?. I cound see only below JSON in Quote data:

Received message: QuoteResponse {
type: ‘Quote Packet’,
responseCode: 4,
securityId: 436976,
ltp: 219.89999389648438,
ltq: 1,
ltt: ‘2024-09-20T18:28:27.000Z’,
atp: 226.3000030517578,
volume: 36301,
totalSellQuantity: 2320,
totalBuyQuantity: 1218,
openPrice: 241.89999389648438,
closePrice: 242.6999969482422,
highPrice: 248.39999389648438,
lowPrice: 215
}

It will be sent as a separate message, not in the same QuoteResponse object.

Already handled this at line 54: DhanHQ JsTs SDK Demo - Replit

OiDataResponse {
  type: 'OI Data Packet',
  responseCode: 5,
  exchangeSegment: 12,
  securityId: 436976,
  openInterest: 10694
}

1 Like