Best way to handle Gateway Timeout error

What is the best way to handle Gateway Timeout errors? How often do you face them in algo trading? I got it 5 times today during trading..

Can you please share your method of handling this exception?

thanks in advance
  • sujith
    If it is a get request then you can retry, if the request is POST, PUT or DELETE then you need to check orderbook and then retry.
    If you blindly retry then you might end up placing two orders.
Sign In or Register to comment.