Completed trades with API | API Development | TORN

Completed trades with API

    • Uras_R34 [2808072]
    • Role: Civilian
    • Level: 89
    • Posts: 210
    • 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 (9 months ago)
    |
    Last replied 08:59:18 - 05/11/24 (8 months 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: 52
    • Posts: 1,925
    • Karma: 141
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:08:26 - 02/11/24 (8 months 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: 3,439
    • Karma: 23,252
    • 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 (8 months 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 (8 months 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: 80
    • Posts: 461
    • Karma: 498
    • Last Action: Now
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 23:14:08 - 03/11/24 (8 months 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 (8 months ago)
    • Weav3r [1853324]
    • Role: Civilian
    • Level: 93
    • Posts: 1,073
    • Karma: 2,824
    • Last Action: 1 minute
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 08:59:18 - 05/11/24 (8 months 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 (8 months ago)

    Owner/Developer of weav3r.dev

     

    Visit my PRICELIST, set a TRADE, or view my BAZAAR

Reply
Thread Title: