HOW TO GET LIVE MARKET DATA IN JAVA SDK
-
Hi Team,
I'm newbie in this.
So, please can you suggest me what to do.
I want to get all BSE stock live price in my android application.
so can you suggest me steps or API Url.
I don't know how to start. -
HI @globalepitychia For future and options data you need to subscribe to web socket by passing token from instrument dump file.
-
@admin Hi
thank you for your reply.how can we achieve "future" and "option" functionality using this API can you please suggest us.
is there any special api or we have to do our code?
we don't have any idea about it. - topic:timeago_earlier,14 days
-
hi @globalepitychia
1)you can use ltp api to get the data.
2)you need to write your own piece of code for calculating top gainers and top losers or you can use available lib such as nsepy
3)you can use any external library to plot the streaming value or you can just resample it to desired time frame and plot it.
4)not clear
5)(https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json).
it is official
6)How to get stock stats like 52 weeks high/low, last close, last traded, etc.
you need to write your own piece of code to do this. -
@admin
Question: 1 : How to get LTP of multiple stocks after market close.
Question: 2 : How can we get Top Trending, Top Gainer, Top Losers stocks.
Question: 3 : How can we get data for chart like candle chart and line chart(graph).
Question: 4 : How can we get specific stock for search implementation.
we have to use below link or another option available?
link is official or not?
(https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json).
Question: 5 : How to get stock stats like 52 weeks high/low, last close, last traded, etc. -
hi @globalepitychia Please find the java sdk link below:
https://github.com/angelbroking-github/smartapi-java -
@admin Not able to find documentation about web socket can you please provide us link for java sdk. How to use web socket.
-
HI @globalepitychia said in HOW TO GET LIVE MARKET DATA IN JAVA SDK:
PARAMETER - {exchange = "NSE",tradingSymbol = "SBIN-EQ",symboltoken = "3045"}
RESPONSE - {"exchange":"NSE","tradingsymbol":"SBIN-EQ","symboltoken":"3045","open":427,"high":427,"low":418.9,"close":430,"ltp":420.9}
we got this response.
But we want all stock live price. How we can achieve that?This task can be achieved by using web socket.
-
URL - https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getLtpData
PARAMETER - {exchange = "NSE",tradingSymbol = "SBIN-EQ",symboltoken = "3045"}
RESPONSE - {"exchange":"NSE","tradingsymbol":"SBIN-EQ","symboltoken":"3045","open":427,"high":427,"low":418.9,"close":430,"ltp":420.9}
we got this response.
But we want all stock live price. How we can achieve that?
-
HI @globalepitychia you can use the ltp api for getting the live data or you can use the websocket.