I want to place a trade order at market price from an existing wallet in some auxiliary currency. After a successfull trade, I need to do some other work (fullfillment).
However, I'm having trouble figuring out whether my order went successfull :(
For instance, when the wallet in the auxiliary currency is empty or too low (and the order should fail), I'm getting the exact same response that I'm getting upon a successfull trade:
$response = {
'data' => 'XXXXXX-XXXX-XXXX-XXXX-XXXXXXX', ## not actual order id/oid
'result' => 'success'
};
What's the way I'm supposed to check for a successfull trade?