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.
 

CREST types.marketGroup

Author
Kale Freeman
Garoun Investment Bank
Gallente Federation
#1 - 2016-06-03 19:19:49 UTC
Is there a way to determine which marketGroup an itemType is in?

https://crest-tq.eveonline.com/types/1201

gives the details of the itemType, but doesn't indicate which market group it is in. The above example is a Wasp I.



https://crest-tq.eveonline.com/market/types/?group=https://crest-tq.eveonline.com/market/groups/2/

gets all the items in a market group, but it rolls up the groups. The above example retrieves the itemTypes in the "Drones" market group. This returns all the itemTypes anywhere under the "Drones" market group. Including 1201, the Wasp I, which is actually in the "Heavy Attack Drones" group, which is under "Combat Drones" which is under "Drones".

I can hack my way around this problem. At the moment I'm considering some sort of post-order traversal of the market group tree and inserting the item into the first market group where it appears.


Any advice?

Is there a reason why the marketgroup is missing from the types response?

Kale Freeman
Garoun Investment Bank
Gallente Federation
#2 - 2016-06-03 19:28:42 UTC
... and as usual, as soon as I ask a question publically I spot the answer myself.

https://crest-tq.eveonline.com/market/types/1201/

gives the the marketGroup id for 1201.