Navigation

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

    Posts made by jiwan1986

    • RE: Immediately buy another order when SL is hit

      @TradeMonk Why SL is at 250 when you buy at 200? As mush as I know, there is no trigger that will let you know if your SL has been hit. You have to keep checking if your SL has been hit or not at every tick. Market can move wildly even in 1 minute so don't wait for 1 minute.

      posted in Python SDK
      J
      jiwan1986
    • RE: getting the next expiry dates

      @PandaTrade You can use web scraping to fetch those data.

      posted in General Discussion
      J
      jiwan1986
    • RE: Multiple HB failure and order book fetch issue

      @rajanprabu I didn't see any issues for the last couple of days. Working fine for me.

      posted in Python SDK
      J
      jiwan1986
    • RE: How to map the token number with their symbol name?

      @nayan_nandi You need to handle exceptions. Key 'tk' won't be in every ticks. You have to add additional if condition after for loop.

      if single_company.get('tk'):
          #do something
      
      posted in General Discussion
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @admin Try to run whole day. You might get the same issue.

      posted in Python SDK
      J
      jiwan1986
    • RE: Unpredictable Invalid Token response from historical API

      @pranav I don't have any timeline. You can ask @admin

      posted in Python SDK
      J
      jiwan1986
    • RE: How to map the token number with their symbol name?

      @nayan_nandi I see some patterns in both the responses. For the first response, you can see 'ltt' has the time value but in the second response, 'ltt' is NA. So I believe you can use that key to differentiate between the two. You have to check if this is true for all the responses.

      posted in General Discussion
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @rajanprabu I was getting the data even when heartbeat failed. So I think there is issue with the heartbeat logic.

      posted in Python SDK
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @rajanprabu I got it one time today.

      posted in Python SDK
      J
      jiwan1986
    • RE: Unpredictable Invalid Token response from historical API

      @pranav Currently the response is in a string format. They are working on to return JSON data. So it would be easy to parse.

      posted in Python SDK
      J
      jiwan1986
    • RE: How to map the token number with their symbol name?

      @nayan_nandi You get 'tk' in tick response. Here you have subscribed to reliance and token for that is 2885. Now if you take a look at response, you would find key named 'tk' which is token for that scrip. You can compare the 'tk' to determine the corresponding scrip.

      posted in General Discussion
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @rajanprabu @Ashok I also didn't face this issue today. It's working fine for me.

      posted in Python SDK
      J
      jiwan1986
    • RE: Not getting data from websocket for some stock

      @91priyansh You can check if you are receiving ltp in the response or not. If you haven't received ltp let's say for 2 to 3 minutes, you can close the connection. Minutes depends on your choice.

      posted in Bugs
      J
      jiwan1986
    • RE: Not getting data from websocket for some stock

      @91priyansh You get ticks only when there's any activity on that scrip. The token is for GOLD September option which is not liquid. So you won't get any data. Try to use current month expiry then you'll get ticks.

      posted in Bugs
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @rajanprabu Yes

      posted in Python SDK
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @admin Today also I got heartbeat failed message.

      posted in Python SDK
      J
      jiwan1986
    • RE: Historic API data format inconsistency

      @Ashok I had discussion with @bhaveshjain regarding same issue. They are discussing internally. I also suggested them to return data in JSON format.

      posted in Python SDK
      J
      jiwan1986
    • RE: is there built in method to find ltp of stock?

      @91priyansh You can use ltpData(exchange,symbol,token) function for it.

      posted in Bugs
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @admin I'm also testing the new SDK, no issues till now. Thanks for quick issue resolution.

      posted in Python SDK
      J
      jiwan1986
    • RE: Web socket scripts stop at random times

      @rajanprabu Yes, I do the same but my algo make use of some past calculations and live candles. So if I start it again, I would need to calculate all the values manually which is cumbersome process. Angel team is working on it.

      posted in Python SDK
      J
      jiwan1986