I am using following code to get the banknifty quote value after every one second
This has a serious bug that i an encountering where the last traded price is completely wrong
This I have observed many times, just giving you one instance of it
Check the code below that I use.
symbol = "NSE:NIFTYBANK-INDEX"
symbols = {"symbols" : symbol , "ohlcv_flag":"0"}
quote = fyers.quotes(symbols)
result = quote["d"][0]['v']['lp']
result time wise
sleeping for 1 seconds
2023-01-25 09:35:14.549625
Found data
--------symbol price 42459.1
sleeping for 1 seconds
2023-01-25 09:35:15.774038
--------symbol price 42459.05
sleeping for 1 seconds
2023-01-25 09:35:17.054485
--------symbol price 42458.55
sleeping for 1 seconds
2023-01-25 09:35:18.285747
--------symbol price 42733.4
Here is the result from 2023-01-25 09:35:14 to 2023-01-25 09:35:19
Check the price @2023-01-25 09:35:18.285747
It just jumped from 42458.55 to 42733.4 when the market was going down.
Then I noticed that this price is from the history @9.15 candle high price.
Is this quote api reliable ? Looks like serious bug. if somebody uses it with real money they will loose a lot of money.
care for accepting this and fixing this? Let me know.