Live data access for my project

Hi @nithin, If you could help me out I would be very greatful. I was trying to build my own virtual trading platform for my project. But I am stuck on how to get Live data from NSE for free. I was planning to display a real time chart. But I am unable to find the data anywhere. Only place I found was Nse where I read I will have to pay 20 lakhs per annum to get data access. Is there a way to retrieve real time data using kite api ?

You can’t really get free data unless you are an exchange registered trading platform. Check this

Stock trading games & copy trading platforms in India? – Z-Connect by Zerodha

Exchange data feed cost

Exchanges have revenue from two sources — transaction costs and data feed. Internationally exchanges earn the majority of revenue from data feed. For example in the US, for the quality of data you receive on trading platforms in India for free (market depth, OHLCV, etc) you might have to pay over $15 per month. Majority of the retail trading platforms in the US give you only last traded price data — that too from small exchanges with inferior quality due to low trading volumes, who might be giving data for free to catch up with the larger ones (the US has over 12 exchanges). In India, exchanges earn mostly from the transaction fees generated from the trades executed — which is the right business model for an exchange, which doesn’t allow them to create an entry barrier for small investors.

But, data feed is free only for stock brokerage firms or members of the exchange to power trading platforms of customers registered on the exchange. Which means that if the data feed is being used for any other purpose, there is a cost to it. This cost is quite high for live data feeds, which makes it prohibitive to run a fantasy stock market game at scale. While the delayed data feed is cheaper, you can’t really run a game if the person playing it knows the price of the stock in advance.

Update as on 8th Aug 2020, we got to know from the exchanges that they are not allowed to provide data to any virtual trading or gaming platforms. Also that they would take action on those who scrape data from exchange website or other broking websites, and use it on the platform.

2 Likes

Ok…Thanks a lot…you were really helpful

I have come across a data provider that does allow fetching real-time data for NSE stocks at no cost but it comes with multiple limitations (registration is mandatory, can only make 250 requests in a day). Might be helpful if you want to test things out but not for a full-fledged project -

Documentation - Documentation free stock API | FmpCloud
Single quote - https://fmpcloud.io/api/v3/quote/RELIANCE.NS?apikey=API-KEY
Multiple quotes - https://fmpcloud.io/api/v3/quote/RELIANCE.NS,HDFC.NS?apikey=API-KEY

Real-time-data


For a hobby project, I would suggest using the Kite Connect API. These links should help you in getting started -

https://kite.trade/docs/connect/v3/websocket/

1 Like

Thanks a lot man…you were really helpful…it will definitely solve my problem…thanks again

1 Like