you would get all the details here, see the readme file
DMoney
@DMoney
Best posts made by DMoney
Latest posts made by DMoney
-
RE: Code to create Session in Java
-
RE: Unable to find java jar file
@chs8788 you will get everything GitHub
https://github.com/angel-one/smartapi-java -
RE: Is Anybody is getting Live Datafeed using Websocket 2.0?
And now I'm unable to connect to WebSocket Order Stream
The handshake response is null -
SmartStreamAPI
Re: Need assistance on web Socket call
I'm using new smart stream api, the api call looks good.
(Sample/Unreleased code- You can find the code on GitHub at https://github.com/angel-one/smartapi-java/pull/1/files)However
-
Quote/LTP - update have prices, multiple of 100, so user has to divide it by 100 to get actual price. Is it correct logic or some bug, as I dont understand the reason to do so.
e.g.
@Override
public void onQuoteArrival(Quote quote) {
ZonedDateTime exchangeTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(quote.getExchangeFeedTimeEpochMillis()), TZ_IST);
String data = String.format("token: %s"
+ " sequenceNumber: %d"
+ " ltp: %.2f"
+ " open: %.2f"
+ " high: %.2f"
+ " low: %.2f"
+ " close: %.2f"
+ " exchangeTime: %s"
+ " exchangeToClientLatency: %s",
quote.getToken().toString(),
quote.getSequenceNumber(),
(quote.getLastTradedPrice() / 100.0),
(quote.getOpenPrice() / 100.0),
(quote.getHighPrice() / 100.0),
(quote.getLowPrice() / 100.0),
(quote.getClosePrice() / 100.0),
exchangeTime,
Instant.now().toEpochMilli() - quote.getExchangeFeedTimeEpochMillis());
System.out.println(data);
} -
Missing Bid/Offer prices in Quote.
What is the purpose of Quote when you dont have Bid/Offer prices in it?
public void onQuoteArrival(Quote quote)
- Snapshot_Quote
There is no 5 levels of depth as promised in API Doc
I understand the API is still in development, please make sure you correct these issues.
-
-
RE: Need assistance on web Socket call
@admin This is really awesome! Saves lot of time.
Just one difference I found. The prices received are multiplied by 100 and user has to divide it by 100 to get right price.Is it correct implementation or some bug.
I dont understand the reason to do so.@Override
public void onQuoteArrival(Quote quote) {
ZonedDateTime exchangeTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(quote.getExchangeFeedTimeEpochMillis()), TZ_IST);
String data = String.format("token: %s"
+ " sequenceNumber: %d"
+ " ltp: %.2f"
+ " open: %.2f"
+ " high: %.2f"
+ " low: %.2f"
+ " close: %.2f"
+ " exchangeTime: %s"
+ " exchangeToClientLatency: %s",
quote.getToken().toString(),
quote.getSequenceNumber(),
(quote.getLastTradedPrice() / 100.0),
(quote.getOpenPrice() / 100.0),
(quote.getHighPrice() / 100.0),
(quote.getLowPrice() / 100.0),
(quote.getClosePrice() / 100.0),
exchangeTime,
Instant.now().toEpochMilli() - quote.getExchangeFeedTimeEpochMillis());
System.out.println(data);
}