@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.
Posts made by rjbanna
-
RE: Immediately buy another order when SL is hit
-
RE: getting the next expiry dates
@PandaTrade You can use web scraping to fetch those data.
-
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.
-
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
-
RE: Web socket scripts stop at random times
@admin Try to run whole day. You might get the same issue.
-
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.
-
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.
-
RE: Web socket scripts stop at random times
@rajanprabu I got it one time today.
-
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.
-
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.
-
RE: Web socket scripts stop at random times
@rajanprabu @Ashok I also didn't face this issue today. It's working fine for me.
-
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.
-
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.
-
RE: Web socket scripts stop at random times
@admin Today also I got heartbeat failed message.
-
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.
-
RE: is there built in method to find ltp of stock?
@91priyansh You can use ltpData(exchange,symbol,token) function for it.
-
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.
-
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.