# Calculating when an order was fulfilled

**URL:** <https://forums.eveonline.com/t/calculating-when-an-order-was-fulfilled/431246>\
**Category:** Third Party Developers\
**Created:** [December 6, 2023, 7:33pm UTC](https://forums.eveonline.com/t/calculating-when-an-order-was-fulfilled/431246 "2023-12-06T19:33:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yana\_Hendar](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/yana_hendar/32/490871_2.png) [@Yana\_Hendar](https://forums.eveonline.com/u/Yana_Hendar)\
**Post date:** [December 6, 2023, 7:33pm UTC](https://forums.eveonline.com/t/calculating-when-an-order-was-fulfilled/431246/1 "2023-12-06T19:33:22Z")

</div>

Hi there!

I am trying to figure out when an order was fulfilled. So I am playing with this ESI endpoint:  
[/characters/{character\_id}/orders/history/](https://esi.evetech.net/ui/#/operations/Market/get_characters_character_id_orders_history)

> duration Number of days the order was valid for (starting from the issued date). An order expires at time issued + duration

This can I think tell me when an order _expires_, unfulfilled, but not when it is _fulfilled_, e.g. when some lucky customer bought the last thing in a sell order… how can I find that out?

---

<div class="post-metadata">

**Author:** ![Golden\_Gnu](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/golden_gnu/32/459734_2.png) [@Golden\_Gnu](https://forums.eveonline.com/u/Golden_Gnu)\
**Post date:** [December 8, 2023, 9:59am UTC](https://forums.eveonline.com/t/calculating-when-an-order-was-fulfilled/431246/2 "2023-12-08T09:59:47Z")

</div>

You can use `volume_remain`:  
`volume_remain` is the items left in the order, when it’s 0 (zero) the order is fulfilled.  
`volume_total` is the items entered into the order

---

<div class="post-metadata">

**Author:** ![Yana\_Hendar](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/yana_hendar/32/490871_2.png) [@Yana\_Hendar](https://forums.eveonline.com/u/Yana_Hendar)\
**Post date:** [December 18, 2023, 5:24am UTC](https://forums.eveonline.com/t/calculating-when-an-order-was-fulfilled/431246/3 "2023-12-18T05:24:26Z")

</div>

Thanks for your response 🙂  
The docs for the history endpoint states:

> List cancelled and expired market orders placed by a character up to 90 days in the past.

So the order should already have expired, and so `volume_remain` should always === 0. At least, I think so!

Looks like I have no alternative but to poll the API to find out _when_ an order was fulfilled that did not expire ☹ and maintain local state.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [March 17, 2024, 5:24am UTC](https://forums.eveonline.com/t/calculating-when-an-order-was-fulfilled/431246/4 "2024-03-17T05:24:51Z")

</div>

Closed on March 17, 2024, 5:24am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
