Calculating when an order was fulfilled

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/

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?

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

Thanks for your response :slight_smile:
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 :frowning: and maintain local state.

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