Navigation

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

    Posts made by softice

    • Age of the holding

      @admin is there any way to retrieve the date on which an instrument was purchased? I want to track age of my holdings.

      posted in General Discussion
      S
      softice
    • Historical APIs not working

      Why are Historical APIs not working today at all? What does this message mean:

      Status: false, Message: Something Went Wrong, Please Try After Sometime, ErrorCode: AB1004

      posted in Go SDK
      S
      softice
    • RE: SEBI circular on algo trading and it's impact

      @namit the circular is not out yet, the above links that moderator has pasted especially from moneycontrol talks about something coming in by March-end.

      I really really hope that it doesn't impact individual retail traders who are using APIs to automate trading in their personal account.

      posted in General Discussion
      S
      softice
    • SEBI circular on algo trading and it's impact

      Hi @admin,

      Can you please provide some clarity on SEBI's circular that is expected by March-end and it's implications on individual retail traders who use your API for trading in their personal account?

      posted in General Discussion
      S
      softice
    • RE: Historical data - 2, 3 and 4 Hours data can't be fetched

      @godboleamit +1, 4H is very very important. I am also looking for it. In absence of it, either I will have to downsample 1H data or use a different broker just to fetch 4H data.

      posted in General Discussion
      S
      softice
    • RE: Historical Data api

      @admin I still don't see historical data API even towards end of 2023. Can you please confirm if you plan to add it?

      posted in Go SDK
      S
      softice
    • Web socket stream stops sending data

      This is happening frequently. Every now and then the websocket stops sending data. All I get is heartbeats. I am tracking BANKNIFTY (symbol token 26009) and this is happening as I am writing this. Last week also it happened.

      How do you expect us to develop strategy and automate the trades if your feed is not reliable?

      posted in NodeJS SDK
      S
      softice
    • RE: SmartConnect::candleData returns AB2001

      @admin I am using FIVE_MINUTE as interval.

      posted in NodeJS SDK
      S
      softice
    • RE: SmartConnect::candleData returns AB2001

      @admin Sorry it worked. I had given from date as 5th May 9:15 and endDate as 13th May 15:30. Then it wasn't working. But as soon as I changed the endDate to 5th May it worked.

      At a time, we can specify only 1 day is it?

      posted in NodeJS SDK
      S
      softice
    • RE: SmartConnect::candleData returns AB2001

      @admin ok thanks. But the API keeps returning AB2001. Even live streaming is not returning any data today.

      posted in NodeJS SDK
      S
      softice
    • SmartConnect::candleData returns AB2001

      I am trying to fetch candle data using SmartConnect::candleData and it is consistently responding with AB2001.

      Also the documentation doesn't mention in what format the time should be specified in the request body? Is it 12 hours or 24 hours format?

      posted in NodeJS SDK
      S
      softice
    • RE: Getting error from candleData method of sample code

      Here is the solution. The candleData method tries to fetch REST API end point from Routes by doing a lookup for "api.candle.data" key. But to my surprise the Routes doesn't have any entry for api.candle.data.

      So I updated the Routes.java file with following line,
      put("api.candle.data","/rest/secure/angelbroking/historical/
      v1/getCandleData");

      After this the example code worked. I don't think this code was ever tested before publishing it.

      My Indian mentality of getting things for free lured me to use these APIs but now I understand why are they free. I am acting as their tester. Thinking of switching to Zerodha Kite Connect.

      posted in NodeJS SDK
      S
      softice
    • RE: Java SDK orphan thread pool

      @admin S476355

      posted in NodeJS SDK
      S
      softice
    • RE: Java SDK orphan thread pool

      @admin today I created a fat jar and ran it from console. Not exactly production like but near production like. Atleast not from IDE.

      But the process still hangs around and doesn't go away. So the issue seems to be there.

      Please confirm if this is an issue and if you are going to fix it.

      posted in NodeJS SDK
      S
      softice
    • Getting error from candleData method of sample code

      Trying to run the sample code for HDFC as follows:

      /** Historic Data */
      public void getCandleData(SmartConnect smartConnect) throws SmartAPIException, IOException {
      
      	JSONObject requestObejct = new JSONObject();
      	requestObejct.put("exchange", "NSE");
      	requestObejct.put("symboltoken", "1330");
      	requestObejct.put("interval", "ONE_MINUTE");
      	requestObejct.put("fromdate", "2021-04-06 09:45");
      	requestObejct.put("todate", "2021-04-06 10:25");
      
      	String response = smartConnect.candleData(requestObejct);
      	System.out.println(response);
      }
      

      Getting following error:

      No such host is known (apiconnect.angelbroking.comnull)

      posted in NodeJS SDK
      S
      softice
    • RE: Java SDK orphan thread pool

      @admin 1 additional info. I am still in early development stage and I observe this while running my code from IDE. I haven't tried running the binaries in production mode.

      posted in NodeJS SDK
      S
      softice
    • Java SDK orphan thread pool

      @admin I am using Java SDK and noticed an issue with the SDK. I noticed that even after I am done with WebSocket listener, there are few threads and a thread pool that keep running and the java.exe process never exits.

      My quick high level analysis shows that problem could be in SmartAPITicker. Especially in getWebsocketAdapter() method where an object of class WebSocketAdapter is created. In that object, the onConnected method is creating a ServiceExecutor on which a shutdown is never called. I made the ServiceExecutor an object of that class and called service.shutdown() from WebSocketAdapter::onDisconnected() method. That seems to be the solution. Now the process exits cleanly with exit code 0.

      But I don't understand this code very well so can you please ask someone to look into this issue of process lying around and not exiting cleanly and let them review if the changes I made could fix the issue.

      Thanks.

      posted in NodeJS SDK
      S
      softice
    • RE: Web Socket opening handshake timeout

      @admin I am also facing same problem. I am having double thoughts about developing further on SmartAPI. Its totally unpredictable.

      posted in Python SDK
      S
      softice
    • RE: Understanding WebSocket tick data

      @rajanprabu Thanks. I figured out the problem. It was an error that I introduced while refactoring the code. After fixing it, its working fine now.

      posted in General Discussion
      S
      softice
    • RE: Understanding WebSocket tick data

      @rajanprabu I am back with my query. My WebSocket API call stopped working today while it was working earlier.

      Today whole day, I just got below messages:

      [{"msg":"connected","task":"cn","ak":"ok"}]
      [{"msg":"mw","task":"mw","ak":"ok"}]
      [{"msg":"mw","task":"mw","ak":"ok"}]
      []
      [{"msg":"heartbeat","task":"hb","ak":"ok"}]

      Even though I got ack for task "mw", didn't get any data at all. Any pointers would be helpful.

      Thanks in advance.

      posted in General Discussion
      S
      softice