Hacker News new | ask | show | jobs
by wruza 1259 days ago
horror stories about trying to cancel an open order, getting a cancel confirmation, then getting notified that the order was executed

Sounds like tuesday to me. One thing you learn about exchanges (I mean all of them as a software category) is that you can’t trust: documentation, reasonable expectations, the experience you’ve got last week, the idea that all symbols behave similarly, reproducibility on test servers and vice versa, to name a few. Don’t rely on these and you’ll be relatively safe.

But really, expecting a deterministic confirmation is a rookie mistake. Exchanges feel very asynchronous after a short while and the intuition should tell you that that a confirmation is just “ok, I hear ya”, not “effective immediately we’ll suspend our queues and reschedule trades to fulfill your urgent request”. The temporal uncertainty of order status is a quite common phenomenon, ime.

1 comments

FTX wouldn’t just ack your cancel request and then give you a fill - you would get cancel successful messages, order status updates that cancelled your order with no filled quantity, and then ten seconds later get a fill for that order.

Occasionally sending out zero balances was another FTX special.