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.
 

[EveLib] A .NET library for EveXML, CREST, EveCentral, and more

First post
Author
Syrsyrian
The Scope
Gallente Federation
#221 - 2015-08-13 20:29:08 UTC
Thanks for the help, its now working as expected. As per Brains instructions I changed the line for the path variable in the core library config.
Reon corm
Ling Ling Industries
#222 - 2015-08-18 18:50:08 UTC
Kuja Armitage wrote:
This may be a noobish question, but how can I achieve getting results as from query:

https://public-crest.eveonline.com/market/types/?group=https://public-crest.eveonline.com/market/groups/150/

using this library?

My current code wich I think should work doesn't even compile:

var crest = new EveCrest();
var root = crest.GetRoot();
var types = root.Query(r => r.MarketTypes);
var skillbooks = types.Query(type => type.Where(t => t.MarketGroup.Id == 150));


Basicly what I'm trying to achieve is to get list of all available skillbooks.


This way:

EveCrest crest = new EveCrest();
var orders = new Href("https://crest-tq.eveonline.com/market/10000002/orders/buy/?type=https://crest-tq.eveonline.com/types/587/");
var orderCollection = crest.Load(orders);



But....
this will give you an exception. MarketOrder.Id is of type int, should be long.
I created an pull request to fix this.
Quesa
Macabre Votum
Northern Coalition.
#223 - 2015-09-03 01:20:49 UTC  |  Edited by: Quesa
Having an issue getting the public CorporationSheet data (no ApiKey required). Currently, the only way I see to get access to the corporation data is to create a new corporation:

var corp = new Corporation(new CorporationKey(0, ""), 1000009);


I don't have a key for the corporation and don't need it because I only need the public data.

Anyone have a workaround that doesn't involve me creating my own code to bring down and deserialize the XML?
Icahmura Hasaki
Perkone
Caldari State
#224 - 2015-09-05 10:56:34 UTC
Seems to be an oversight on my part, and there isn't a way for doing this at the moment. I'll add this to the next version, which is coming soon.

Developer of EveLib and EveAuthUtility

Quesa
Macabre Votum
Northern Coalition.
#225 - 2015-09-05 22:23:29 UTC
Icahmura Hasaki wrote:
Seems to be an oversight on my part, and there isn't a way for doing this at the moment. I'll add this to the next version, which is coming soon.



Sweet, thanks.

If you're really into punishing yourself, there are a good deal of these types of endpoints that have optional credential requirements for public data...possible that you missed more?
Icahmura Hasaki
Perkone
Caldari State
#226 - 2015-09-06 16:25:18 UTC
Quesa wrote:
Icahmura Hasaki wrote:
Seems to be an oversight on my part, and there isn't a way for doing this at the moment. I'll add this to the next version, which is coming soon.



Sweet, thanks.

If you're really into punishing yourself, there are a good deal of these types of endpoints that have optional credential requirements for public data...possible that you missed more?


Do you have any examples? I can't recall seeing any

Developer of EveLib and EveAuthUtility

Richard TheLordOfDance
Operation Fishbowl Inc.
#227 - 2015-09-06 18:47:58 UTC  |  Edited by: Richard TheLordOfDance
Any reason why the EveCentral module don't have the option to use POST to send the data instead of always using GET?
Would be nice for looking up market stats for large amounts of items at once
Icahmura Hasaki
Perkone
Caldari State
#228 - 2015-09-06 21:03:40 UTC  |  Edited by: Icahmura Hasaki
Richard TheLordOfDance wrote:
Any reason why the EveCentral module don't have the option to use POST to send the data instead of always using GET?
Would be nice for looking up market stats for large amounts of items at once

What prevents you from doing that using GET ?

edit: I guess there's a size limit, I'll add a post option.

Developer of EveLib and EveAuthUtility

Icahmura Hasaki
Perkone
Caldari State
#229 - 2015-09-06 21:05:01 UTC
Quesa wrote:
Having an issue getting the public CorporationSheet data (no ApiKey required). Currently, the only way I see to get access to the corporation data is to create a new corporation:

var corp = new Corporation(new CorporationKey(0, ""), 1000009);


I don't have a key for the corporation and don't need it because I only need the public data.

Anyone have a workaround that doesn't involve me creating my own code to bring down and deserialize the XML?


The current version on git now supports this, available as EveLib.Eve.GetCorporationSheet(id)

Developer of EveLib and EveAuthUtility

Richard TheLordOfDance
Operation Fishbowl Inc.
#230 - 2015-09-06 21:41:09 UTC
Icahmura Hasaki wrote:
Richard TheLordOfDance wrote:
Any reason why the EveCentral module don't have the option to use POST to send the data instead of always using GET?
Would be nice for looking up market stats for large amounts of items at once

What prevents you from doing that using GET ?

edit: I guess there's a size limit, I'll add a post option.

Awesome ^^ sorry for not being clear about the size limit, have bumped into the same problem when writing some web request stuff of my own so thought it was a well known thing...
Valko Raskolbasko
Center for Advanced Studies
Gallente Federation
#231 - 2015-09-07 14:48:25 UTC  |  Edited by: Valko Raskolbasko
I am newbie and i have some problem.


var eveMarketData = new EveMarketData ( ) ;

var emdOptions = new EmdOptions
            {
                Items = new List < int >  { 1223 } ,
                ItemGroups = new List < int > ( ) ,
                Regions = new List < int > ( ) ,
                Stations = new List < int > ( ) ,
                Solarsystems = new List < int >  { 30000142 },
                RowLimit = 10000 ,
                AgeSpan = TimeSpan.FromDays ( 30 ) ,
            };

var orders = eveMarketData.GetItemOrders(emdOptions, OrderType.Both).Result.Orders.ToList();


I received orders, but the result often differs from eve_central

As example, now i received only sell orders. Buy orders are empty.

I've tried to change params of EmdOptions (RowLimit and AgeSpan ) but result is the same.

I've tried to use this:

            var eveCentral = new EveCentral ( ) ;
            MarketStatResponse response = eveCentral.GetMarketStat ( options ) ;


But, here i don't receive orders, only info ( Max/Min/Avg and other). This info - is correct.

What i am doing wrong?
Icahmura Hasaki
Perkone
Caldari State
#232 - 2015-09-07 15:15:33 UTC
As far as I'm aware Eve Central and Eve Market Data do not use the same data sources, so they will rarely if ever match. I've used the EMD module myself extensively a few months back, and I'm fairly confident it's working as it should. I'm not sure the website is being maintained anymore tho, I heard some rumors it was dying?

If you debug your calls, the generated URI should be output to your console. Verify that the URI has the correct/expected GET parameters, and compare the returned XML in your browser to the returned object to see that everything is parsed correctly.

Developer of EveLib and EveAuthUtility

Valko Raskolbasko
Center for Advanced Studies
Gallente Federation
#233 - 2015-09-07 15:46:38 UTC
Icahmura Hasaki wrote:
As far as I'm aware Eve Central and Eve Market Data do not use the same data sources, so they will rarely if ever match. I've used the EMD module myself extensively a few months back, and I'm fairly confident it's working as it should. I'm not sure the website is being maintained anymore tho, I heard some rumors it was dying?

If you debug your calls, the generated URI should be output to your console. Verify that the URI has the correct/expected GET parameters, and compare the returned XML in your browser to the returned object to see that everything is parsed correctly.


Thx for your answer. Yes, parameters are correct and parsed all fine.

For any ideas, how to get correct buy/sell orders - i will be very grateful!
Brain Gehirn
Macabre Votum
Northern Coalition.
#234 - 2015-09-07 18:07:01 UTC
Valko Raskolbasko wrote:


Thx for your answer. Yes, parameters are correct and parsed all fine.

For any ideas, how to get correct buy/sell orders - i will be very grateful!



Grab from CREST and be happy.
Quesa
Macabre Votum
Northern Coalition.
#235 - 2015-09-08 00:03:39 UTC
Icahmura Hasaki wrote:
Quesa wrote:
Icahmura Hasaki wrote:
Seems to be an oversight on my part, and there isn't a way for doing this at the moment. I'll add this to the next version, which is coming soon.



Sweet, thanks.

If you're really into punishing yourself, there are a good deal of these types of endpoints that have optional credential requirements for public data...possible that you missed more?


Do you have any examples? I can't recall seeing any


By good deal, I meant 2 P. They appear to be the corp one and CharacterSheet.
Valko Raskolbasko
Center for Advanced Studies
Gallente Federation
#236 - 2015-09-08 12:11:48 UTC
Brain Gehirn wrote:
Grab from CREST and be happy.


I am sorry, bot how can i get buy/sell orders by CREST?
Icahmura Hasaki
Perkone
Caldari State
#237 - 2015-09-08 20:02:40 UTC
Quesa wrote:
Icahmura Hasaki wrote:
Quesa wrote:
Icahmura Hasaki wrote:
Seems to be an oversight on my part, and there isn't a way for doing this at the moment. I'll add this to the next version, which is coming soon.



Sweet, thanks.

If you're really into punishing yourself, there are a good deal of these types of endpoints that have optional credential requirements for public data...possible that you missed more?


Do you have any examples? I can't recall seeing any


By good deal, I meant 2 P. They appear to be the corp one and CharacterSheet.


I can't seem to find any documentation for a public CharacterSheet, got a link?

Developer of EveLib and EveAuthUtility

Desmont McCallock
#238 - 2015-09-08 20:59:31 UTC  |  Edited by: Desmont McCallock
http://wiki.eve-id.net/APIv2_Corp_CorporationSheet_XML

For Character you need to use CharacterInfo.
Icahmura Hasaki
Perkone
Caldari State
#239 - 2015-09-08 21:01:15 UTC  |  Edited by: Icahmura Hasaki
Desmont McCallock wrote:
http://wiki.eve-id.net/APIv2_Corp_CorporationSheet_XML


Are you sure there's anything about the CharacterSheet there? If so I can't find it.. The public CorporationSheet is already added :)

edit: I guess the correct name is CharacterInfo, which I think already supports both a public and the keyed version.

Developer of EveLib and EveAuthUtility

Desmont McCallock
#240 - 2015-09-08 21:03:37 UTC
Icahmura Hasaki wrote:
Desmont McCallock wrote:
http://wiki.eve-id.net/APIv2_Corp_CorporationSheet_XML


Are you sure there's anything about the CharacterSheet there? If so I can't find it.. The public CorporationSheet is already added :)

edit: I guess the correct name is CharacterInfo, which I think already supports both a public and the keyed version.

I wasn't done editing bro.Cry