I am getting this issue, but I am not able to pin point where its happening, as per my calculation I should not be making more than 60 call per min max and less than 5K per day. But I am facing this issue.
Instead of blocking the user for the rest of the day, can you block him/her till market closes.
That way we get a chance to rectify the code and test it after market hours and it will not impact anybody.
Now I am giving a sleep for 0.2 sec, which means I can't make more than 5 Api call per sec. Still I am getting this issue after 2:30, can you please give a solution to know which(per min/day) limit I am crossing.