r/Eve•
nuadi

GCS Version 7a: Removing your getMarketPrice functions ... (soon)

Good morning.

GCS has been updated to work with the new CREST inventory types endpoint. You can find the latest version here: https://github.com/nuadi/googlecrestscript

This is version 7a which includes a major change of my own, but it isn't going to actually break your sheets (yet). What I did was the following:

  1. Deprecated the getMarketPrice function
  2. Added the getStationMarketPrice and getRegionMarketPrice functions

So, if you are genuinely interested in the station price, then you need only change your getMarketPrice cells to use the getStationMarketPrice function. The getMarketPrice function will still work, and nothing will break, but I will be removing it in version 9a or 10a.

Not much else to say. Track me down using one of the various contact methods I have in the README if you encounter any bugs. I have been working on integrating the bulk market data for those of you who routinely contact me asking why you've reached Google's UrlFetchApp limit after trying to pull every item price in Jita. Well, this should let you do that. I just have to sort out the caching scheme.

As always, fly safe. o7


Edit to add:

Version 7b is now available. This version includes the following:

  1. Fixed a few minor bugs in edge cases that I found. Hopefully no one else did... :/
  2. Errors related to the order type are now more expressive so that you know exactly what might be wrong with that argument. Let me know if it's still confusing.
  3. Added the getAverageDailyVolume and getAverageDailyOrders functions. These both ping the historical data endpoint and let you calculate the averages in one cell as opposed to having to setup some elaborate set of sheets, the getHistoryAdv function, and then average the data.
  4. Added a version check per u/RHAGU's suggestion. Hopefully this isn't annoying, but as always keep me posted on feedback.

This concludes my plans for the version 7 series. Stuff coming up in version 8 includes Minimum volume threshold for pricing, so you don't get the lowest sell price for Tritanium when there's only 1 trit available in the order. Support for the Adjusted Price of items so you can use it in industrial sheets. I also plan to look into groups to make those a little easier to pull than using the getMarketItems function, but we'll see how that goes.

Posted Jun 14, 2016, 1:06 PM UTC · edited

2123
RHAGU•

Thank you so much for all your efforts!!!!!!!

Suggestion: It would be a help if you had out-of-date support. Just update a tiny file when there is a release and have the code check that file on a free website once a day. Then my spreadsheet could do a big red cell if my current version is 6c and latest is 7a.

Thanks again, off to download.

5
nuadiOPMiner•

Good idea. I'll create a ticket for this.

1
nuadiOPMiner•

Aaaaand... done. :)

1
d347hm4nMordus Angels•

Thanks for your efforts.

4
nuadiOPMiner•

o7

2
AakuiceGallente Federation•

Thank you very much. A version change not just for me haha One solution to Google's UrlFetchApp limit is to have multiple spreadsheets over different accounts, just depends how they have their spreadsheet setup.

2
nuadiOPMiner•

That's true, and I've had a few users doing that, but I have always been working to remove that workaround so that we don't have to maintain different accounts.

1
AakuiceGallente Federation•

I see you've already reached 7c. "Added the getAverageDailyVolume and getAverageDailyOrders functions" I couldnt see how you set these up in your readme so i havent tried them out, but im in no rush to redo my spreadsheet yet :). Is that function for 1 day or can you set a range? im using 1, 2, 3 and 4 day averages on one spreadsheet and 7, 14, 21 and 30 on others.

2
nuadiOPMiner•

You can set them up for any number of days.

Oh, I see. I'll update the documentation. Sorry about that.

1
DemigaPandemic Horde Inc.•

This is awesome thanks!

2
nuadiOPMiner•

o7

1
Hoppy24604Pandemic Horde•

Holy shit, time to take PI to a religious level...

2
nuadiOPMiner•

Funny that you mention PI. My PI spreadsheet is why I built this script.

1
Pravus_BeluaCloaked•

First, thank you for your efforts and making them public.

I do have a few questions about it if you don't mind.

  • Is this is newbie-friendly? I have absolutely zero experience with GCS and very little experience building EVE spreadsheets at all. I learn quickly and am by no means a computer layman, but is using this going to be akin to my cat trying to read the American Journal of Physics?

  • I do have access to Excel, and I'm familiar with it. Would you say I should stick to that and use EVE Central API instead?

  • Does using GoogleDocs and GCS offer me an advantage that Excel/API does not?

 

Cheers.

2
nuadiOPMiner•

It is fairly newbie-friendly. I provide an example spreadsheet here that already has the script installed and sheets showing how each function works.

Google Sheets isn't very different from Excel. There are some things Excel does better, and visa versa, so ultimately it's down to preference. The EVE Central API is perfectly fine for spreadsheet use, and is in fact what I used when I started playing EVE.

There's no clear advantage between the EVE Central API and CREST in terms of data. I think EVE Central pulls from CREST in addition to receiving input from players. Either is fine.

2
Pravus_BeluaCloaked•

Thank you for the information.

In that case, I think I'll tinker with both formats and just see which one I prefer.

2
caprisunkraftfoodsThe Suicide Kings•

Why would you break backwards compatability when there's no benefit in doing so? Just make getMarketPrice alias one of the other two commands in a way that does the same thing.

1
nuadiOPMiner•

While that is true, the name of the function is ambiguous until you inspect the function arguments individually. This way a user will know exactly what to expect by simply reading the function name.

3
caprisunkraftfoodsThe Suicide Kings•

Yeah but that's the kind of design decision you make when planning version 1, not refactoring version 7. You're still breaking backwards compatability for no real benefit.

1
nuadiOPMiner•

Yeah but that's the kind of design decision you make when planning version 1, not refactoring version 7.

I 100% agree with this statement. Had I had the forethought that this script would gain any wider acceptance than my own handful of sheets, I would have done a far larger design plan to ensure that there were as few speedbumps to use as possible. Unfortunately, I had no idea where this would go when I built it.

Today, I take a lot more time to think out my functions so that I can avoid breaking backward compatibility. However, I also do not guaranty backward compatibility either.

5
Hoppy24604Pandemic Horde•

Ah, and where's your perfect script that you made?

3
caprisunkraftfoodsThe Suicide Kings•

No where, there is no such thing.

It's just a rule in development, you don't break backwards compatability unless there's a really good reason to do so. "So people use the new stuff the right way" is a logical but arrogant approach to versioning.

0
therendal•

For the price of free, and you're griping that he didn't plan everything perfectly from day one.

2