Skip to content
TORNLIFE More

Log API and bookie

Started by L4suicide [15699] on in API Development.

6 replies · 186 views · thread synced · 7 days ago · View on torn.com
About this thread

Posts archived: 7 / 7 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
7
Discussion span
→
People posting
4
Likes on archived posts
2
Authority score
51 / 100
Historical score
17 / 100
Story score
27 / 100
Engagement score
48 / 100

Most-liked replies

L4suicide [15699]
So err.. is there anyway to get the details that show in the log web interface via the api?

here's what I can see for some of the log types 8460-8462

"log": {
"8XGY9JBem2GIyWHFjKDn": {
"log": 8462,
"title": "Bookie win (new)",
"timestamp": 1712294048,
"category": "Casino",
"data": {
"selection": [
"4389127",
925589673,
7869814019,
],
"odds": "3.20",
"bet": 500000000,
"winnings": 1600000000,
"deduction": "",
},
"params": {
"italic": 1,
"color": "green",
},
},
"RkbzNarCptUfzkjjXLaL": {
"log": 8461,
"title": "Bookie lose (new)",
"timestamp": 1712286905,
"category": "Casino",
"data": {
"selection": [
"4389126",
925589657,
7872267496,
],
"odds": "3.20",
"bet": 500000000,
},
"params": {
"italic": 1,
"color": "red",
},
},
"94NgYqHsB0T67DxKykg9": {
"log": 8460,
"title": "Bookie bet (new)",
"timestamp": 1712291812,
"category": "Casino",
"data": {
"selection": [
4217153,
925334534,
7869852269,
],
"odds": "3.60",
"bet": 500000000,
},
"params": {
},
},

Now compared to whats in the log screen

05:14:08 - 05/04/24 You won $1,600,000,000 on your $500,000,000 (x3.20) bet in the Bookie on Draw (3-Way Ordinary time) bet on Tepatitlan FC v Tlaxcala FC (Football)


I was hoping to do some analysis of my bets to pull out stats based on sport (Football), bet type (Draw) and then the team (would have loved competition too, but although its shown in bookies its not in the logs at all)

Am I just using the wrong API call?

https://api.torn.com/user/?selections=log&log=8461,8462&key=x3UtinkIputKEYinEre?MoRoN



Kwack [2190604]
iirc no, there's no way to get info about a bookie bet using the internal ID. Not unless you find something using the betfair API, but I haven't tried.
Omanpx [1906686]
Could you use the events endpoint instead? would be a lot of parsing, but might be doable. Never made a single bookie bet, so not sure what's returned in the events.
Kwack [2190604]
But then you also lose the ability to filter, so you'll sit there pulling 5 years (in my case, a decade extra for you OP) worth of events.

Although it's definitely better than nothing