public List < Order > getOrders ( ) throws KiteException , JSONException , IOException { String url = routes . get ( "orders" ) ; JSONObject response = new KiteRequestHandler ( proxy ) . getRequest ( url , apiKey , accessToken ) ; return Arrays . asList ( gson . fromJson ( String . valueOf ( response . get ( "data" ) ) , Order [ ] . class ) ) ; }
Fetches collection of orders from the orderbook .