Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. thunder123
    3. Posts
    T
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by thunder123

    • 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());
      		}
      	}
      
      posted in NodeJS SDK
      T
      thunder123