The GetOrder parameter problem

Author: honeyligo, Created: 2018-12-18 15:17:15, Updated:

The id returned from Bitmex's Buy or Sell interface is sometimes numeric and sometimes a string, and the GetOrder argument supports both types, but often returns errors: GetOrder ((45893259-c8ef-1e0c-33c4-xxxxxx): order not found

Debugging tool requests but returns order information normally


More

honeyligo /upload/asset/f0d2357a1fae6bce69358bc04518ede6.png

The Little DreamThe return should be a string. If you're interested, check out the screenshot below.

wufuhao100wIt's like this /upload/asset/132dcb83ad158647ccc9c.png

wufuhao100wBut the order id has been returned, so the id should have been successfully placed...

The Little DreamIt must be that the order was really not found.

wufuhao100wGod, I've tried, sometimes pausing for 2 seconds still gives the error not found, pausing for too long affects the policy, is there any way to filter this error message and let the program continue to run, because I've been waiting for the order state to get completed, and I've also tried again with _C when using the GetOrder function...

The Little DreamI'm not being polite.

honeyligoOkay, I'll give it a try, thank you.

The Little DreamIf you have placed an order, you may need to pause it for a few seconds, for example, 2 seconds, and then check again, it may be that the exchange system has not entered the order yet.