getTrades in JAVA returning null


  • Below is the code snippet from your github repository, which is not working as the response object is returning null. Please let me know if anything is wrong here, or how can i fix it.

    It is very urgent.

    /** Get tradebook */
    	public void getTrades(SmartConnect smartConnect) throws SmartAPIException, IOException {
    		// Returns tradebook.
    		List<Trade> trades = smartConnect.getTrades();
    		for (int i = 0; i < trades.size(); i++) {
    			System.out.println(trades.get(i).tradingSymbol + " " + trades.size());
    		}
    	}
    

  • Hi @thunder123

    Please let us know which SDK version is consumed at your end.
    Kindly make sure if the issue occurs on recent SDK version 2.2.3 and let us know if the issue still persists

    Regards,
    SmartAPI team