These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

Player Features and Ideas Discussion

 
  • Topic is locked indefinitely.
 

WalletJournal API question

Author
Ally Beye
WEEEEEEEEEEE
#1 - 2017-03-11 18:12:11 UTC  |  Edited by: Ally Beye
Hi everyone,

I'm doing some tests to try and learn how to use Eve's API system. I'm having an issue with the WalletJournal:

I work in python and I use the adress below to check my WalletJournal:

https://api.eveonline.com/char/WalletJournal.xml.aspx?keyID=xxxxxxx&vCode=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

This works both in Python and in my browser and I manage to parse the xml just fine.

My problem is that the doc says I should be able to use the parameter "rowCount" to get more results (I only get 20 atm). I tried the adress below but it didn't work...

https://api.eveonline.com/char/WalletJournal.xml.aspx?keyID=xxxxxxx&vCode=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&rowCount=200

Can someone point me in the right direction ? I think I might not be using the API right.

Thx a bunch !

PS: I also noticed that the API only updates every 30 mins or so. Is there anyway for it to be faster ?
Cade Windstalker
#2 - 2017-03-11 18:25:09 UTC
Answers in no particular order:

The API is rate limited for performance reasons. Depending on which API you use (there are, I believe, three at this point in various stages of development and deprecation) the rate limit will be different. The three are, I believe, the XML api which you seem to be using, CREST, and the newest which is ESI (warning, still in dev...). No idea off the top of my head what limits the other two have on rate.

If you're only getting 20 rows of Wallet Journal that may be all you have available. The game can cache more than that, but the actual API will only hold stuff for a certain number of days. This is likely the issue you're running into.

Also FYI the better forum section for this sort of question is over here: https://forums.eveonline.com/default.aspx?g=topics&f=263 they can probably answer your question more fully.
Ally Beye
WEEEEEEEEEEE
#3 - 2017-03-11 18:31:30 UTC  |  Edited by: Ally Beye
Thx a lot for all the insight, it was helpful :)

The earliest entry in my journal dates back to february, I think you're right about those being the only entries in my journal (also the default is supposed to be 1000 results per request I believe).

Still I'd really like to know how to include the rowcount param in my request, if anyone can help about that

EDIT : or maybe my original formatting is good... Since there are no further entries to show, I'll only be able to tell with more entries in my journal
Scipio Artelius
Weaponised Vegemite
Flying Dangerous
#4 - 2017-03-11 19:07:52 UTC  |  Edited by: Scipio Artelius
Ally Beye wrote:
Still I'd really like to know how to include the rowcount param in my request, if anyone can help about that

EDIT : or maybe my original formatting is good... Since there are no further entries to show, I'll only be able to tell with more entries in my journal

Yes, your format is fine.

Default rowCount is 1000, maximum in 2560.

If you need to walk the API back (eg. more than 2560 rows of data), then you can use the fromID argument and include the referenceID of the first entry in the data you obtain. That will then return the next lot of data back from the referenceID included.

However, you can't go back further than 1 month.

This old forums thread is worth reading:

https://oldforums.eveonline.com/?a=topic&threadID=1453360
Ally Beye
WEEEEEEEEEEE
#5 - 2017-03-11 20:59:39 UTC
Thx a lot for confirming, you guys were really helpful :)