Log API and bookie | API Development | TORN

Log API and bookie

    • L4suicide [15699]
    • Role: Civilian
    • Level: 100
    • Posts: 4,809
    • Karma: 8,916
    • Last Action: 47 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 07:52:03 - 05/04/24 (5 months ago)
    |
    Last replied 17:27:04 - 05/04/24 (5 months ago)
    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



    Ranked war auction service:-

    Just 5m per day per listing

    Chat for details

    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 1,865
    • Karma: 2,838
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:26:17 - 05/04/24 (5 months ago)
    Post link copied to clipboard Copy post link
    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.
    • L4suicide [15699]
    • Role: Civilian
    • Level: 100
    • Posts: 4,809
    • Karma: 8,916
    • Last Action: 47 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:34:58 - 05/04/24 (5 months ago)
    Post link copied to clipboard Copy post link

    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.
    Hrm, was wondering what those IDs were about..

    Ranked war auction service:-

    Just 5m per day per listing

    Chat for details

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 1,934
    • Karma: 11,354
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 12:45:40 - 05/04/24 (5 months ago)
    Post link copied to clipboard Copy post link
    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.

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

    Guidebook - a collection of guides i made for Torn.

    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 1,865
    • Karma: 2,838
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:02:41 - 05/04/24 (5 months ago)
    Post link copied to clipboard Copy post link

    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.
    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
    Last edited by Kwack on 12:45:49 - 07/04/24
    • L4suicide [15699]
    • Role: Civilian
    • Level: 100
    • Posts: 4,809
    • Karma: 8,916
    • Last Action: 47 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:15:20 - 05/04/24 (5 months ago)
    Post link copied to clipboard Copy post link

    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.
    May have to do this.. unless I can persuade ched to add more details

    Ranked war auction service:-

    Just 5m per day per listing

    Chat for details

    • tiksan [2383326]
    • Role: Civilian
    • Level: 100
    • Posts: 899
    • Karma: 1,213
    • Last Action: 9 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:27:04 - 05/04/24 (5 months ago)
    Post link copied to clipboard Copy post link

    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.

    L4suicide [15699]

    May have to do this.. unless I can persuade ched to add more details
    Old logs most likely won’t be retroactively updated if more details are added by the way.

    LnNwLrL.gif

Reply
Thread Title: