These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

char/MarketOrders API call

Author
Prator Vax
Pator Tech School
Minmatar Republic
#1 - 2012-05-02 05:42:16 UTC
Dev notes for the orderID attribute returned from the char/MarketOrders API call say "Unique order ID for this order. Note that these are not guaranteed to be unique forever. But they are unique for the purpose of a single data pull."

Does anyone have a clearer idea of how long the order ID is valid and un-changing? It seems like it would be the obvious choice to use as unique identifier for market orders I want to store locally in a database but if it recycles within the lifetime of a Market Order then that won't work.

If this attribute recycles too quickly then I can't see a way to uniquely identify a market order with the other attributes returned from this API call. For example if the same character has two buy orders for the same item in the same station there doesn't seem to be a good way to distinguish the two results when they are returned. I thought the issued field might do the job but it changes if an orders price is modified.

Any help or comments appreciated.

Thanks
Desmont McCallock
#2 - 2012-05-02 05:58:00 UTC  |  Edited by: Desmont McCallock
To my knowledge orderID doesn't change during the lifetime of the order.
What the spec doc means is that the number used to specify that order, may be recycled by CCP at downtime and be used again for another order, once the order is redundant.

Now, because CCP has moved to 64bit ID assigning, even if recycling IDs is CCP's practice, chances are that you won't see the same ID in between very short periods. And by very short period I mean at least a year as (at least in game) we can view up to a years history. Which probably means that orders and orderIDs are stored for at least a year.
Prator Vax
Pator Tech School
Minmatar Republic
#3 - 2012-05-02 16:16:53 UTC
Thanks