drift-labs / gateway

Self hosted API gateway to easily interact with Drift V2 Protocol
Apache License 2.0
21 stars 12 forks source link

Feature Request: Receive Order Fill details via REST APIs #72

Open satwikkansal opened 1 month ago

satwikkansal commented 1 month ago

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.

jordy25519 commented 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

satwikkansal commented 1 month ago

Yes, recent should be enough for now.