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.
 

[XML] Total active orders?

Author
yohobroo
Doomheim
#1 - 2015-10-21 21:35:02 UTC
I would like to write a formula that indicates how many individual buy and sell orders exist for a given item. Is there an easy way of doing this?

I understand that the following is a link to all of the buy and sell orders in Jita for trit: http://api.eve-marketdata.com/api/item_orders2.xml?char_name=demo&buysell=a&type_ids=34

is there any way to count the amount of orders? Thanks in advance!
Hel O'Ween
Men On A Mission
#2 - 2015-10-24 12:14:50 UTC
If understand your question correctly you could use two XPath queries for this.

Buy orders:

//emd/result/rowset/row[@buysell='b']/


Sell orders:

//emd/result/rowset/row[@buysell='s']/


Both queries return a nodelist collection where nodelist.length = number of orders for this type.

EVEWalletAware - an offline wallet manager.