public void getQuote ( KiteConnect kiteConnect ) throws KiteException , IOException { // Get quotes returns quote for desired tradingsymbol. String [ ] instruments = { "256265" , "BSE:INFY" , "NSE:APOLLOTYRE" , "NSE:NIFTY 50" } ; Map < String , Quote > quotes = kiteConnect . getQuote ( instruments ) ; System . out . println ( quotes . get ( "NSE:APOLLOTYRE" ) . instrumentToken + "" ) ; System . out . println ( quotes . get ( "NSE:APOLLOTYRE" ) . oi + "" ) ; System . out . println ( quotes . get ( "NSE:APOLLOTYRE" ) . depth . buy . get ( 4 ) . getPrice ( ) ) ; System . out . println ( quotes . get ( "NSE:APOLLOTYRE" ) . timestamp ) ; }
Get quote for a scrip .