public Map < String , Margin > getMargins ( ) throws KiteException , JSONException , IOException { String url = routes . get ( "user.margins" ) ; JSONObject response = new KiteRequestHandler ( proxy ) . getRequest ( url , apiKey , accessToken ) ; Type type = new TypeToken < Map < String , Margin > > ( ) { } . getType ( ) ; return gson . fromJson ( String . valueOf ( response . get ( "data" ) ) , type ) ; }
Gets account balance and cash margin details for a equity and commodity .