Completed trades with API | API Development | TORN

Completed trades with API

    • Uras_R34 [2808072]
    • Role: Civilian
    • Level: 69
    • Posts: 219
    • Karma: 121
    • Last Action: 5 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 17:21:31 - 26/09/24 (2 months ago)
    |
    Last replied 08:59:18 - 05/11/24 (1 month ago)

    Is there a way to see if a trade is completed and the details of it? wanna bring in my trades into my bot, to save em. and work with it

    • RipplyFountain [2904100]
    • Role: Civilian
    • Level: 50
    • Posts: 1,485
    • Karma: 122
    • Last Action: 1 hour
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:08:26 - 02/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    I am not sure, but I love that idea! A bot to notify you when a trade is completed? Sounds interesting!

    ✅Connecting businesses with employees instantly! Explore Ripply HeadHunters today!✅

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,455
    • Karma: 15,759
    • Last Action: 5 hours
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 21:54:31 - 02/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    https://www.torn.com/page.php?sid=log&cat=94 - you want cat 94 of the user/log endpoint. You could also narrow it down to specific log types instead of the entire category. After that, it's just a matter of parsing and taking the data that you need.

     

    Trade completed is log 4430 https://www.torn.com/page.php?sid=log&log=4430 

    Last edited by Omanpx on 21:55:17 - 02/11/24 (1 month ago)

    Toolbox - a collection of my tools and spreadsheets made for Torn.

    Guidebook - a collection of guides i made for Torn.

    • Titanic_ [2968477]
    • Role: Civilian
    • Level: 72
    • Posts: 314
    • Karma: 316
    • Last Action: 12 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:14:08 - 03/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Omanpx [1906686]

    https://www.torn.com/page.php?sid=log&cat=94 - you want cat 94 of the user/log endpoint. You could also narrow it down to specific log types instead of the entire category. After that, it's just a matter of parsing and taking the data that you need.

     

    Trade completed is log 4430 https://www.torn.com/page.php?sid=log&log=4430 

    These four should be enough to map out all trades

     

    https://www.torn.com/page.php?sid=log&log=4445,4446,4441,4440

    Last edited by Titanic_ on 23:15:04 - 03/11/24 (1 month ago)
    • Weav3r [1853324]
    • Role: Civilian
    • Level: 91
    • Posts: 433
    • Karma: 649
    • Last Action: 3 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:59:18 - 05/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    RipplyFountain [2904100]

    I am not sure, but I love that idea! A bot to notify you when a trade is completed? Sounds interesting!

    Already created, was my first large project on Torn. Notifies you of everything relevant to a trade.

     

    Link to my trading bots thread here:

     https://www.torn.com/forums.php#/p=threads&f=67&t=16403432&b=0&a=0&start=0&to=24924550

     

    To OP:

    As Oman and Titanic pointed out, there are plenty of logs available to do whatever you may need. Just have to do a lot of type checks and the like since Torn's API is pretty weird. I would recommend searching for the log IDs you want to work with specifically rather than cat 94 since a full trade from start to finish typically takes up a lot of the data in a typical response, most of which you don't need. 

    Last edited by Weav3r on 09:10:03 - 05/11/24 (1 month ago)
Reply
Thread Title: