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
Completed trades with API
Started by Uras_R34 [2808072] on in API Development.
About this thread
Posts archived: 5 / 5 posts (100%) · the total is Torn's reply count + the opening post at the last fetch
Counted by TornLife from the archived posts.
- Archived posts
- 5
- Discussion span
- →
- People posting
- 5
- Likes on archived posts
- 6
- Authority score
- 66 / 100
- Historical score
- 25 / 100
- Story score
- 32 / 100
- Engagement score
- 53 / 100
I am not sure, but I love that idea! A bot to notify you when a trade is completed? Sounds interesting!
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
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.