esi / esi-issues

Issue tracking and feature requests for ESI
https://esi.evetech.net/
209 stars 23 forks source link

esi-ui: Endpoints to open a Market Buyall windows with a list of type_id #54

Open defmonk0 opened 7 years ago

defmonk0 commented 7 years ago

It would be really cool to get the ability to open market UI windows via API. Buttons could be made to view a specific item on the market (replacing the old IGB functionality for buyType). Additionally, expanding this to be able to supply multiple typeID/quantity pairs, the buy-all window could create 1-click links to buy entire shopping lists to open in game.

Some examples of use cases might be:

aquarhead commented 7 years ago

or even simply fitting tools that no longer need fits to be in-game to buy all.

But it will be simpler to actually fit all the stuff onto a ship if you have the fitting in-game?

regner commented 7 years ago

That requires abusing a system that is not meant for this at all, it also means EVE is storing this information in the DB, and you then also have to give write access for your fits to a shopping list application. It would be really slick to be able to just send a request to the client that opens the buy all UI with a list of types. Also helps when you're the alliance logistics officer and need to buy 100 of 30 different fits.

The user still has to confirm it, but would be nice.

aquarhead commented 7 years ago

Also helps when you're the alliance logistics officer and need to buy 100 of 30 different fits.

Makes sense. Not sure what you're talking about in the beginning.

regner commented 7 years ago

Hopefully it makes sense now. :) The request is just for the ability to send an action to the client, much like opening the show info UI through CREST, to open the buy all UI with a specified list of types.

aquarhead commented 7 years ago

That requires abusing a system that is not meant for this at all, it also means EVE is storing this information in the DB, and you then also have to give write access for your fits to a shopping list application.

Actually I mean I don't get you point here.

I think his request is to allow open the buy all window from a fitting tool, not from a shopping list service for fitting (and I'm certainly not talking about writing fitting from a shopping service).

In the original request, I think if you bought all the items, but without the fitting imported, you have to drag them one by one onto a ship. It's much simpler to just import the fitting first then you can fit with 1-click after buy all. This would be a better flow if you just want to fit your own ship.

But your "alliance logistics officer" makes more sense for this buy all window endpoint :)

regner commented 7 years ago

Alliance level logistics happen in a few stages:

  1. Buy all the shit in Jita
  2. Transport it to null staging
  3. Assemble stuff
  4. Pass it off to someone else to hand out

What actually gets bought for the first step varies based on what military says the doctrines are and what you have already in stock at the staging location. So you need to figure out what the difference is, buy all the stuff missing, then haul it to null and assemble it at the staging location.

The same often applies for not alliance level stuff. When I am making a big run into my WH from a good high sec static I figure out what ships I want, buy all of it, haul it in, and then assemble it there.

On top of that there is the industrialist who don't want to buy ship fittings but wants to buy materials for building stuff. Most already have applications that look at what they have in stock, what they want to build, and generate a shopping list. It just comes down to manually buying all of it one item at a time right now.

aquarhead commented 7 years ago

Totally make sense :)

defmonk0 commented 7 years ago

Hey! Figured I should pipe in. @Regner seems to have hit most of what I was getting at. The (admittedly bad) examples in the OP are just what I had thought of at the time. The examples since mentioned are much more concise. I edited the OP with other examples/clarifications for visibility. Neither new example is for fits (which, as you said, would could just as well covered by buy-all for fittings) but both could be very useful to have buy-all functionality for.

guiguilechat commented 5 years ago

I would like this feature, even though I think that it may not work as good as expected because sometimes the buy all fails, and thus to realize what actually happened ingame you need to wait up to one hour for the esi asset cache to expire. Still the idea is good.

proposal :

path : [POST] /ui/openwindow/buyall/

bodyparameters:

errors :

result : 204

Blacksmoke16 commented 5 years ago

@guiguilechat This issue is already about just opening the window in game prefilled, not automatically buying the stuff via ESI.

guiguilechat commented 5 years ago

yes.

I mean that confirming a buy all may not result in ALL the orders being bought. I just used a buy all today and though it closed the window, only a very small number of items were actually bought.

guiguilechat commented 5 years ago

on ESI people explained it is possibly a duplicate feature of "copy list to feature ; import list from buy-all window".

I think it may save a few clicks, especially when using several alts, but maybe it's actually not that useful ?