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());
}
}