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.
 

Contract history via API

Author
Nick Duel
Deep Core Mining Inc.
Caldari State
#1 - 2016-01-02 05:35:27 UTC
I'm trying to get my contract history using the API. I get records for the previous 30 days approximately, but no older. However, when I get my contract history in game, I get 2 or 3 months worth, basically when I started doing courier contracts. Are those contracts that are older than 30 days not available using the API?

Thank you.
Hel O'Ween
Men On A Mission
#2 - 2016-01-02 18:39:48 UTC
Quote:

/char/Contracts.xml.aspx: Lists contracts issued within the last month as well as all contracts marked as outstanding or in-progress.


Source: http://community.eveonline.com/news/dev-blogs/caks-and-contracts-in-the-api/ (via http://eveonline-third-party-documentation.readthedocs.org/en/latest/xmlapi/char_contracts/)

EVEWalletAware - an offline wallet manager.

Nick Duel
Deep Core Mining Inc.
Caldari State
#3 - 2016-01-02 23:30:28 UTC
Thanks. I understand how to get the last month's worth of contracts. That works fine. But I'm wondering how the display in-game is getting the last 2 or 3 months worth of contracts. Is that somehow retrievable with the API?
Dragonaire
Here there be Dragons
#4 - 2016-01-03 05:26:13 UTC
Most things in the APIs have a limited time period when they are available so you have to get them at the time or you lose them unfortunately.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Hel O'Ween
Men On A Mission
#5 - 2016-01-03 11:21:58 UTC  |  Edited by: Hel O'Ween
Nick Duel wrote:
Thanks. I understand how to get the last month's worth of contracts. That works fine. But I'm wondering how the display in-game is getting the last 2 or 3 months worth of contracts. Is that somehow retrievable with the API?


Sorry that I did not spell out that part explicit: like Dragonaire said: most API calls only provide data for a limited time span, which is in most (all?) cases less than what the client is able to show you. That's because the client is fed from the live server, whereas the API data is housed in a separate server instance.

That quote shows (although implicit) in the highlighted part the limitation to 1 month worth of data.

That's also why old API data is so precious - what you've missed to grab at the right time can never be recovered.

EVEWalletAware - an offline wallet manager.

Desmont McCallock
#6 - 2016-01-03 11:27:43 UTC
Let's hope that with CREST it will be different.