TornTools appears to handle this by diffing the total vault against the player's personal log for vault deposits/withdrawals. I suspect that if there was an easier process, TornTools would probably be using it.
I don't believe there's any way to use your own API key to query another player's logs. However, if a tool was using both your key and your spouse's key, it would know both of your deposits and withdrawals.
Property Vault History
-
Thread created on 07:03:11 - 17/08/22 (5 months ago)|Last replied 14:10:31 - 21/09/22 (4 months ago)
Hey I was looking at the API and I see theres total vault value available but no way to check the vault history.
Am I missing something or is there really no real way to check vault history via the api?
Thanks to everyone ahead of timeDiscord: DaBouas#1337
-
-
Posted on 14:09:38 - 17/08/22 (5 months ago)Post link copied to clipboard Copy post link
Unable to test this (since my in-game partner is away)
But I believe this *may* fall under logs?
Log 5851 being a withdrawal, and 5850 being a deposit.
If this doesn't also appear for the person sharing the vault, it may be a case of doing a bit of math between total vault, and logs? -
-
Posted on 15:43:49 - 17/08/22 (5 months ago)Post link copied to clipboard Copy post link
TornTools appears to handle this by diffing the total vault against the player's personal log for vault deposits/withdrawals. I suspect that if there was an easier process, TornTools would probably be using it.
I don't believe there's any way to use your own API key to query another player's logs. However, if a tool was using both your key and your spouse's key, it would know both of your deposits and withdrawals. -
-
Posted on 21:05:25 - 17/08/22 (5 months ago)Post link copied to clipboard Copy post link
Thank you guys both so much. I will look into that. It completely went over my head to consider checking log.
Discord: DaBouas#1337
-
-
Posted on 13:38:55 - 14/09/22 (4 months ago)Post link copied to clipboard Copy post link
I copied the logs from property vault page to a Google sheet, then ran a script I wrote to prettify the copied lines into a useful table (when I pasted them they came out in 1 column)
Maybe not the smartest solution but it did work -
-
Posted on 14:10:31 - 21/09/22 (4 months ago)Post link copied to clipboard Copy post link
In the API, your vault logs are at https://api.torn.com/user/?selections=log&cat=138&key=<whatever>.
In general, the way to figure out the API call for a given log is to go to your logs page and filter there, then examine the URL. For instance when I search for vault logs on my logs page, the URL turns into https://www.torn.com/page.php?sid=log&cat=138. This tells me that `&cat=138` tells Torn "just the vault logs", so adding that to the API call filters the logs the same way. -