Property Vault History | API Development | TORN
Property Vault History
    • danielporsh911 [1842280]
    • Role: Civilian
    • Level: 59
    • Posts: 101
    • Karma: 32
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    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 time

    YMCMT_8.gif

    Discord: DaBouas#1337

    • BritishBenji [2257611]
    • Role: Civilian
    • Level: 50
    • Posts: 181
    • Karma: 209
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    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?
    • pomatias [2696490]
    • Role: Civilian
    • Level: 20
    • Posts: 413
    • Karma: 347
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    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.
    • danielporsh911 [1842280]
    • Role: Civilian
    • Level: 59
    • Posts: 101
    • Karma: 32
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    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.

    YMCMT_8.gif

    Discord: DaBouas#1337

    • Justice [1446944]
    • Role: Civilian
    • Level: 40
    • Posts: 1090
    • Karma: 1146
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:57:46 - 12/09/22 (4 months ago)
    Post link copied to clipboard Copy post link

    pomatias [2696490]

    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.
    Where can i find this?
    • avital [501114]
    • Role: Civilian
    • Level: 63
    • Posts: 307
    • Karma: 53
    • Last Action: 7 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    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
    • pomatias [2696490]
    • Role: Civilian
    • Level: 20
    • Posts: 413
    • Karma: 347
    • Last Action: 8 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 14:10:31 - 21/09/22 (4 months ago)
    Post link copied to clipboard Copy post link

    pomatias [2696490]

    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.

    Justice [1446944]

    Where can i find this?
    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.
Reply
Thread Title: