i am getting open , high, low, close and last traded price, But i don't know how to calculate the current price . i want to display the current prices with positive or negative values. Can you please help me how to do it?
Last traded price was always returning the same value, I don't see any postive and negative values on after that time, Current price was Last Traded Price.
I want to display current price in graphical view with up and down values, But i can't get it .
Hi @Pandiyaraj, Last traded price is not something that can be calculated. It is the price at which last trade happened which is published by the exchange. You will have to use the same value.
Hi @Pandiyaraj, Yes, you can use LTP as the current price. You can display change(which says if current price is above/below previous close), check out parsing change from websockets here
Thanks for your help. I got some ideas now to get the changes of price, But constantly getting same value i didn't see any changes on this instrument token. I am getting value '280' as LTP. The same price only i getting.
@Pandiyaraj Are you using any of the official Kite connect libraries to get ticks or you have rolled your own? Few instruments which you posted above like SBIN (779521) are volatile and you should be getting different LTP every few seconds during the markets.
LTP(last traded price) is the current price but what is the use case?
You can use last traded price(last price).
Last traded price was always returning the same value, I don't see any postive and negative values on after that time, Current price was Last Traded Price.
I want to display current price in graphical view with up and down values, But i can't get it .
Please give me some ideas to calculate this.
Thanks
Pandiyaraj
Last traded price is not something that can be calculated. It is the price at which last trade happened which is published by the exchange. You will have to use the same value.
So Shall i just use the last traded price as current price value in graph right?
Where can i get the up / down prices in that streaming bytes .
Yes, you can use LTP as the current price.
You can display change(which says if current price is above/below previous close), check out parsing change from websockets here
Thanks for your help. I got some ideas now to get the changes of price, But constantly getting same value i didn't see any changes on this instrument token. I am getting value '280' as LTP. The same price only i getting.
Can you let us know instrument token?
: 16922626 , 779521 , 16778754, 23666434