I’m trying to rebuild orderbook for trading, but i have realized L200 is updated 3 to 4 times a second but the quotes are updated 1 to 2 times per second. but if you look closely at the data quotes are technically updated once per second, since ltp and volume mostly remain same in the 1 second update, only total buy or sell volume changes. if ltp and volume are not updated at the same rate as L200 depth, doesn’t the entire exercise of using L200 bid/ask is futile since there would be lag in quotes data as compared to L200 data.
@Ajinkya_JyotiPrakash The 200-level depth is also a snapshot of the full book, sent a few times a second.
The two feeds can’t be matched exactly. They come from separate UDP-based broadcast streams, and each one is sampled and delivered independently. There’s no shared sequence number or common timestamp to line a depth snapshot up with a specific trade.
So each feed is best used as its own accurate view of the market, rather than lined up packet-by-packet with the other.
@Kushagra_Rohatgi Thanks for the clarification, that makes sense.
First, kudos to the Dhan tech team for building and maintaining this stack. It’s genuinely the best in the country.
A follow-up on update frequency:
The 200-level and 20-level depth feeds deliver roughly 3–4 packets per second. The Live Market Feed (quotes) mostly delivers about 1 packet per second, even though those packets are much smaller. Is there a specific reason for this, and could the quote feed frequency be increased?
I understand the two feeds can’t be matched packet-by-packet, and that’s fine. More granular quote data on its own would still help a lot in building volume heatmaps and DOM surface visualisations.
I also understand that far more users connect to the Live Market Feed than to the L20/L200 websockets, so raising the frequency for everyone could add significant server load. One option could be a separate, higher-frequency quote websocket available only on the higher-tier data plan.
Some feedback on the Data APIs for Pro Traders plan:
Right now, L200 depth and the CAS live feed are the features that really stand out. Traders who can write their own websocket clients can usually build their own technical indicators and get news or fundamentals from other sources (or even AI), so those features add relatively little value for them. Add-ons like these would make a real difference:
- A higher-frequency live quote feed
- A websocket-based, faster feed for corporate filings and announcements
Why this could be worth it for Dhan:
- Contained cost, clear upsell: Limiting the high-frequency feed to Pro subscribers keeps the extra load to a small group, and quote packets are already lightweight.
- Less load from polling: Without a push feed for corporate announcements, users who trade on news end up polling the APIs repeatedly. A websocket would likely be both faster for us and lighter on Dhan’s servers.
- High-value users: Traders who build order-flow tools and algos tend to trade actively, which means more turnover on the platform. Once they’ve built their systems on Dhan’s APIs, they’re also far less likely to switch brokers.
- Differentiation: As far as I know, no other broker in India offers 200-level depth together with high-frequency quotes. That would make Dhan the clear choice for serious API traders.
Low-risk way to test it: This could start as an opt-in beta for a limited number of Pro subscribers. That would help measure demand and server load before any wider rollout. Personally, I’d be happy to pay a premium for it and help test it.
If possible, could you share this with the product team? Thanks again for being so responsive on the forum.
Hi Ajinkya,
I’ve sent you a DM. Please check when you get a chance.
Thanks
I second this suggestion. In particular, the higher-frequency quote feed and other advanced data features would be extremely valuable. If Dhan makes these available as part of a premium Pro Traders offering, I would definitely be interested in paying extra for them.
I think there is a genuine market for these kinds of advanced data services among serious API traders.