Best method to detect when a placed offer is partially and/or fully filled? #2529
-
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.
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.
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):