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.
 

Market Query: Reducing Overhead (Page Count)

First post
Author
Rocketfish
State War Academy
Caldari State
#1 - 2016-05-25 22:15:37 UTC
Greetings all.

I searched for this, so apologies if it's been covered before. I'm a bit new to this RESTful API gig

Using the new bulk market feature:
https://crest-tq.eveonline.com/market/10000042/orders/all/

Is it possible to just pull the page number datapoint for a specific region?

I can parse out the info from this call as is; but it is costly. I want to find a way to get just the datapoint i need (Number of pages) instead of the entire first page of results.


TL;DR: How to pull only the number of pages when querying an entire region for Market orders.
Mr Mac
Dark Goliath
#2 - 2016-05-26 05:53:14 UTC
Why you want the page count?

If you trying to get specific item from data, add to the link "?type=http://crest-tq.eveonline.com/types/{typeID}/" (without the quotes)
CCP FoxFour
C C P
C C P Alliance
#3 - 2016-05-26 07:57:42 UTC
Rocketfish wrote:
Greetings all.

I searched for this, so apologies if it's been covered before. I'm a bit new to this RESTful API gig

Using the new bulk market feature:
https://crest-tq.eveonline.com/market/10000042/orders/all/

Is it possible to just pull the page number datapoint for a specific region?

I can parse out the info from this call as is; but it is costly. I want to find a way to get just the datapoint i need (Number of pages) instead of the entire first page of results.


TL;DR: How to pull only the number of pages when querying an entire region for Market orders.


Unfortunately that information is not available outside requesting the page of data. Sorry.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Rocketfish
State War Academy
Caldari State
#4 - 2016-05-26 14:14:41 UTC
Mr Mac wrote:
Why you want the page count?

If you trying to get specific item from data, add to the link "?type=http://crest-tq.eveonline.com/types/{typeID}/" (without the quotes)



Thank you.

Just for example:
I noticed in the documentation, under "route" it had something like this: "regionID:regionIdType" But I was never quite sure what was meant by a type in this particular case. I will look into this today.

To answer your question. I wanted to query just the page count in order to update my UI with a status. I found an acceptable way to do this inline with my data pull. Result looks something like this:

Branch: Starting thread...
Cache: Starting thread...
Catch: Starting thread...
Domain: Starting thread...
Cache: Getting Data (1 of 1)
Cache: Import Complete!
Catch: Getting Data (1 of 3)
Domain: Getting Data (1 of 22)
Branch: Getting Data (1 of 2)
Catch: Getting Data (2 of 3)
Branch: Getting Data (2 of 2)
Branch: Import Complete!
Domain: Getting Data (2 of 22)
Catch: Getting Data (3 of 3)
Catch: Import Complete!

Thanks again for your help!
Rocketfish
State War Academy
Caldari State
#5 - 2016-05-26 14:16:57 UTC
CCP FoxFour wrote:
Unfortunately that information is not available outside requesting the page of data. Sorry.



Thank you for Responding. I seem to have found a way to make it all work as is. I just wanted to make sure I wasn't missing out on a better way.