Open satwikkansal opened 1 month ago
gateway could store fills for a current session but going through the user's transaction history from a block explorer / indexer is the most comprehensive way.
so if your preference is to query for a recent fill it may be possible to implement here
Yes, recent should be enough for now.
As discussed in https://github.com/drift-labs/gateway/issues/71
Presently the POST order endpoint returns a txn reference. But the same txn reference can't be used to determine whether the order has been filled or canceled.
There should be some way to check that using the original identifier returned from create order API or the order ID or user order ID.