Best method to detect when a placed offer is partially and/or fully filled? #2529
Answered
by
mvadari
ShaunLaFleur
asked this question in
Q&A
-
I'm having trouble figuring out how to get alerts when an order that was placed was partially or fully filled in the order books. I tried subscribing to the account that placed the order, but the transaction that triggers the event listener seems to only return data about the created offer which filled the order from the account I'm watching, without specific details about the actual amount(s) filled. |
Beta Was this translation helpful? Give feedback.
Answered by
mvadari
Oct 17, 2023
Replies: 1 comment 2 replies
-
There isn't a way to directly do this. I'd recommend subscribing to the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The ledger stream data is just useful for telling you when a ledger has closed, so you can requery the ledger object. Here's some code (I didn't actually run this, just an example):