@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.
rjbanna
@rjbanna
Best posts made by rjbanna
Latest 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.