public Map < String , Quote > getQuote ( String [ ] instruments ) throws KiteException , JSONException , IOException { KiteRequestHandler kiteRequestHandler = new KiteRequestHandler ( proxy ) ; JSONObject jsonObject = kiteRequestHandler . getRequest ( routes . get ( "market.quote" ) , "i" , instruments , apiKey , accessToken ) ; Type type = new TypeToken < Map < String , Quote > > ( ) { } . getType ( ) ; return gson . fromJson ( String . valueOf ( jsonObject . get ( "data" ) ) , type ) ; }
Retrieves quote and market depth for an instrument