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.
 

Devsite blog: Nom nom tasty market data!

First post First post
Author
Ortho Loess
Escalated.
OnlyFleets.
#141 - 2014-12-02 19:11:48 UTC
Seems to be bugged atm, http://public-crest-sisi.testeveonline.com/market/types/17738/ is the uri needed to get the machariel (random item), but all the uris provided by the endpoints have it as /types/, not/market/types/

I remember you mentioning having to change this, but right now, it's giving URIs that don't work.
CCP FoxFour
C C P
C C P Alliance
#142 - 2014-12-03 13:04:54 UTC
Aineko Macx wrote:
Sign me up too plz.

App: iveeCore
id: 14ea5ffa75224ac29332ef0e330d9bff


You can do it yourself now: https://developers.testeveonline.com/applications/create

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Aineko Macx
#143 - 2014-12-04 18:37:23 UTC
Indeed.

I find it awkward that you have to go through the OAuth user authentication flow to access data that is not at all character/user related. OAuth has the client credential flow for this case, which would remove all these unnecessary steps for market order data and if I understand correctly all data that will fall under the publicData scope.
CCP FoxFour
C C P
C C P Alliance
#144 - 2014-12-04 21:26:05 UTC
Aineko Macx wrote:
Indeed.

I find it awkward that you have to go through the OAuth user authentication flow to access data that is not at all character/user related. OAuth has the client credential flow for this case, which would remove all these unnecessary steps for market order data and if I understand correctly all data that will fall under the publicData scope.


Yes, and we use it internally but don't have it setup for third-party developers yet.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Khanadien Karlov
Wu Xi Holdings
#145 - 2014-12-07 19:09:18 UTC
CCP FoxFour wrote:
Aineko Macx wrote:
Indeed.

I find it awkward that you have to go through the OAuth user authentication flow to access data that is not at all character/user related. OAuth has the client credential flow for this case, which would remove all these unnecessary steps for market order data and if I understand correctly all data that will fall under the publicData scope.


Yes, and we use it internally but don't have it setup for third-party developers yet.


Few questions,


  1. will final version require OAuth or will it be public CREST stuff?
  2. what is expected release timeframe for this market API?

CCP FoxFour
C C P
C C P Alliance
#146 - 2014-12-08 08:59:01 UTC
Khanadien Karlov wrote:
CCP FoxFour wrote:
Aineko Macx wrote:
Indeed.

I find it awkward that you have to go through the OAuth user authentication flow to access data that is not at all character/user related. OAuth has the client credential flow for this case, which would remove all these unnecessary steps for market order data and if I understand correctly all data that will fall under the publicData scope.


Yes, and we use it internally but don't have it setup for third-party developers yet.


Few questions,


  1. will final version require OAuth or will it be public CREST stuff?
  2. what is expected release timeframe for this market API?



It's coming out with Rhea tomorrow and it will be behind authed CREST.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Kaladr
Viziam
Amarr Empire
#147 - 2014-12-08 16:06:44 UTC
Looking forward to it 🎉

Creator of EVE-Central.com, the longest running EVE Market Aggregator

Pete Butcher
The Scope
Gallente Federation
#148 - 2014-12-09 08:02:09 UTC  |  Edited by: Pete Butcher
Any last chance for location and solar system ids (and volume entered)? After all, you already have that data - just add "id": to those elements.

http://evernus.com - the ultimate multiplatform EVE trade tool + nullsec Alliance Market tool

Nthanda Sithembile
Traknob
#149 - 2014-12-09 19:42:27 UTC
If I want to work with marketing data I should still ask for Authed Crest?
If that's the case, could you give it to (on SiSi)


ClientId: e9e9801dad6c4e269ce5ce042a929661
Name: stEve

CCP FoxFour
C C P
C C P Alliance
#150 - 2014-12-09 19:47:39 UTC
You can set it up yourself on the developers site now.

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Nthanda Sithembile
Traknob
#151 - 2014-12-09 19:55:46 UTC
That part, about creating/registering the app I figured out, but if I get the following message

{"message": "Authentication scope needed", "key": "authNeeded", "exceptionType": "UnauthorizedError"}

then that's because its not there yet?

talking about this example

GET /market/10000002/orders/buy/?type=https://api-sisi.testeveonline.com/types/683/ HTTP/1.1
Host: https://api-sisi.testeveonline.com
Authorization: Bearer jKVB8oaN9qboU5kQG4sWSoWxzSUaFkQaUyeisy8jWU3apRfYSgYsKpZGNbLh41xXEzuy-NDBX1FohEdEadaukQ2
Accept: application/vnd.ccp.eve.MarketOrderCollection-v1+json
Fifth Blade
Jump Drive Appreciation Society
#152 - 2014-12-09 20:43:32 UTC  |  Edited by: Fifth Blade
Nthanda Sithembile wrote:
That part, about creating/registering the app I figured out, but if I get the following message

--- snip ---

You might want to remove that key/code/token from the public forums.
Kaladr
Viziam
Amarr Empire
#153 - 2014-12-09 20:57:00 UTC
Thankfully expired after 5 minutes :-)

Creator of EVE-Central.com, the longest running EVE Market Aggregator

Nthanda Sithembile
Traknob
#154 - 2014-12-09 21:11:25 UTC  |  Edited by: Nthanda Sithembile
It's just copy/pasted from the article, it ain't mine ;)


And no, that's not the bearer I used.Blink
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#155 - 2014-12-09 21:15:44 UTC
Nthanda Sithembile wrote:
That part, about creating/registering the app I figured out, but if I get the following message

{"message": "Authentication scope needed", "key": "authNeeded", "exceptionType": "UnauthorizedError"}

then that's because its not there yet?

talking about this example

GET /market/10000002/orders/buy/?type=https://api-sisi.testeveonline.com/types/683/ HTTP/1.1
Host: https://api-sisi.testeveonline.com
Authorization: Bearer jKVB8oaN9qboU5kQG4sWSoWxzSUaFkQaUyeisy8jWU3apRfYSgYsKpZGNbLh41xXEzuy-NDBX1FohEdEadaukQ2
Accept: application/vnd.ccp.eve.MarketOrderCollection-v1+json



When you sent the request over to the login server, did you fill in the scope? (you probably didn't)

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Nthanda Sithembile
Traknob
#156 - 2014-12-09 21:42:11 UTC
Thanks Steve, that was it.
I missed out reading this

Kali Izia wrote:

Initially you follow the same flow as the normal SSO auth with these differences:

1. On your call to /oauth/authorize, set your scope to "publicData"
2. On your call to /oauth/token, you now get a refresh_token in the response
3. On future calls to /oauth/token, you can use the refresh token by changing the grant_type to "refresh_token", and send the token in a "refresh_token" variable rather than a "code"
So instead of this:
POST https://sisilogin.testeveonline.com/oauth/token

grant_type=authorization_code&code=xxx

You do this:
POST https://sisilogin.testeveonline.com/oauth/token

grant_type=refresh_token&refresh_token=yyy

4. When accessing the CREST resource, just include your "Authorization: Bearer $access_token" header
Thrad Markner
The Scope
Gallente Federation
#157 - 2014-12-10 02:58:35 UTC
Super happy about this! One quick question: what is the "right" way to get the system that a buy/sell order is in? Obviously I can just parse the station name string (assuming it continues to be the case that systems never contain a space in their name...), but that feels rather wrong and un-RESTy
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#158 - 2014-12-10 03:43:35 UTC
Thrad Markner wrote:
Super happy about this! One quick question: what is the "right" way to get the system that a buy/sell order is in? Obviously I can just parse the station name string (assuming it continues to be the case that systems never contain a space in their name...), but that feels rather wrong and un-RESTy



For now, parsing out the location id from the href, then looking it up in the SDE for the station, works.

It's far from an ideal situation.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Ydnari
Estrale Frontiers
#159 - 2014-12-19 21:51:59 UTC
Pete Butcher wrote:
Any last chance for location and solar system ids (and volume entered)? After all, you already have that data - just add "id": to those elements.


Did anyone get an answer about volume entered? Been asked several times, don't recall seeing any response.

It's not functionally equivalent to the in-game market export to file, or to the cache scraping it's supposed to replace, without it.

--

Kaladr
Viziam
Amarr Empire
#160 - 2014-12-20 02:51:05 UTC
I got an out of band reply that it will re-appear in the next 1-2 releases.

Creator of EVE-Central.com, the longest running EVE Market Aggregator