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.
 

API: how to connecting WalletJournal and WalletTransactions

Author
March rabbit
Aliastra
Gallente Federation
#1 - 2015-03-17 18:22:57 UTC
Looking into these XML files i only can deduce that there are 3 records for each sell (haven't checked about buy):
- record for money transfer (WalletJournal)
- record for tax (WalletJournal)
- record for item transfer (WalletTransactions)
These records have consequent IDs. Usually they go consequent but sometimes they have step of 2 (maybe more, I haven't seen it).

I would like to attack taxes to every market transaction so i need to have reliable procedure for getting tax record for given item transfer.

Currently i take ID of 'item trasfer' and check if there is record with ID-1. If not i check ID-2. But i think it is too lame and will lead to troubles.

Any recommendations?
Thanks

The Mittani: "the inappropriate drunked joke"

Dragonaire
Here there be Dragons
#2 - 2015-03-19 16:45:23 UTC
IDs are assigned as things happen so if say 3 people buy something from you at the same time their transactions in WalletJournal and WalletTransactions can be intermixed. This mean there's really no way to say which of the taxes or fee go with which one. This becoming even harder when they are all for the same item type and the same amounts. Also keep in mind that the ID are Eve wide so during peak periods there could be a difference of hundreds or even thousands between the IDs of the related transaction and the other things like taxes. Normally the best you can do is have a marketing char that does nothing else than you can at least get over all numbers just not item by item accounting without issues with kills, industrial jobs etc.

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

March rabbit
Aliastra
Gallente Federation
#3 - 2015-03-19 18:14:24 UTC
that's bad news.....

So what others do with it? Or people just ignore taxes when analyzing market activity? What?

The Mittani: "the inappropriate drunked joke"

Remo Muutaras
Science and Trade Institute
Caldari State
#4 - 2015-03-19 18:43:06 UTC
March rabbit wrote:
that's bad news.....

So what others do with it? Or people just ignore taxes when analyzing market activity? What?


Calculate the tax based off standings/etc and apply it?.
March rabbit
Aliastra
Gallente Federation
#5 - 2015-03-19 21:04:05 UTC  |  Edited by: March rabbit
Remo Muutaras wrote:
March rabbit wrote:
that's bad news.....

So what others do with it? Or people just ignore taxes when analyzing market activity? What?


Calculate the tax based off standings/etc and apply it?.

Unless this info is presented in API this would make the program heavily depend of some obscured changes in the game. Like when CCP changed taxes like 1 year ago (or it was 2 years ago....). I not always read patchnotes. Oops

There is more interesting question: if i sell through sell orders i pay taxes for creating this order too. Would be goot to use this taxes too....

The Mittani: "the inappropriate drunked joke"

Hel O'Ween
Men On A Mission
#6 - 2015-03-20 14:57:15 UTC
That's why I decided to ignore standings for calculating taxes. I let the user input his relevant skills levels and just use the taxes/fees calculated from those. Which means: you might pay less fees than my app shows you, but never more.

EVEWalletAware - an offline wallet manager.