Zicore / CrossoutMarket

Crossout Market - Prices and Graphs
55 stars 18 forks source link

Download whole market data at once? #59

Closed andrewpros closed 6 years ago

andrewpros commented 6 years ago

Hi.

Would it be possible to have an option to download whole market data at once?

I dont know, by api or maybe a highly compressed file updated every 5 minutes as the default interval?

I want to run this site locally and make some changes for my needs, but getting all the market items one by one just dont seem very efficient.

Zicore commented 6 years ago

Hmm, I think this would kill our server 😄

andrewpros commented 6 years ago

Well i forgot to mention, not all market data, but just for the current 5 minute interval, all items.

I have found out the item api already returns an item array even if u can request only single id at a time, noticed this when making a little calc based on api that didn't deserialize properly the data, it would be nice to have an option to get multiple items with one call.

Well there are a better solution, to have access to that direct market data the script has, but i don't think devs will make it public for everyone.

andrewpros commented 6 years ago

Oh and one more thing, what is the difference? If it is not possible by a single call, then i need to make at least several dozen api calls? Right?

Stiffi136 commented 6 years ago

You could use https://crossoutdb.com/api/v1/items to get all items by a single call.

andrewpros commented 6 years ago

Well that will be ok. Thx.