Upcoming API changes - Page 12 | API Development | TORN

Upcoming API changes

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:35:57 - 28/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Silmaril [2665762]

    'market' -> 'itemmarket' is returning nulls for listing prices of many items

    armor & weapons work OK, but all other items are like this

     

    POST https://api.torn.com/v2/market/428?selections=itemMarket

    {
        "itemmarket": {
            "item": {
                "id": 428,
                "name": "Casino Pass",
                "type": "Special",
                "average_price": 19811050
            },
            "listings": [
                {
                    "id": null,
                    "price": null,
                    "amount": null
                },
                {
                    "id": null,
                    "price": null,
                    "amount": null
                }
            ]
        },
        "_metadata": {
            "prev": null,
            "next": null
        }
    }

    Hey, that should be fixed now!

    Let me know if there's anything else.

    Thanks!

    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 301
    • Karma: 797
    • Last Action: 22 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:13:55 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey, that should be fixed now!

    Let me know if there's anything else.

    Thanks!

    Again it's broken.

    But in other way.

    Now it gives you cached version of the previous item u requested, even though u request totally DIFFERENT item.

    You probably added caching based on time, but also need to add itemId as another key component.

     

    Last edited by Silmaril on 13:18:13 - 29/10/24 (1 month ago)
    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:16:01 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey, that should be fixed now!

    Let me know if there's anything else.

    Thanks!

    Silmaril [2665762]

    Again it's broken.

    But in other way.

    Now it gives you cached version of the previous item u requested, even though u request totally DIFFERENT item.

    You probably added caching based on time, but also need to add itemId as another key component.

     

    0119e0dd-c19f-44f3-b052-ecf5ca378475-1441750.png

     

    yup broke again :/

    • _SCOFIELD_ [1441750]
    • Role: Civilian
    • Level: 100
    • Posts: 3,786
    • Karma: 6,658
    • Last Action: 6 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:18:49 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Seems like if you use

     

    "https://api.torn.com/v2/market/?selections=itemmarket&key={key}&id=1118"

     

    this format instead of

     

    "https://api.torn.com/v2/market/1118?selections=itemmarket&key={key}"

     

    then it works fine

    • Silmaril [2665762]
    • Role: Civilian
    • Level: 90
    • Posts: 301
    • Karma: 797
    • Last Action: 22 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 13:26:56 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    _SCOFIELD_ [1441750]

    Seems like if you use

     

    "https://api.torn.com/v2/market/?selections=itemmarket&key={key}&id=1118"

     

    this format instead of

     

    "https://api.torn.com/v2/market/1118?selections=itemmarket&key={key}"

     

    then it works fine

    ahh, now they'll "fix" your endpoint too!

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:20:21 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey, that should be fixed now!

    Let me know if there's anything else.

    Thanks!

    Silmaril [2665762]

    Again it's broken.

    But in other way.

    Now it gives you cached version of the previous item u requested, even though u request totally DIFFERENT item.

    You probably added caching based on time, but also need to add itemId as another key component.

     

    Today I've pushed a change which allows API v2 endpoints to be in this format:
    https://api.torn.com/v2/market/itemmarket,timestamp/1118?&key= 


    And while these work alright when requested in succession: 

    https://api.torn.com/v2/market/itemmarket/522?&key= 

    https://api.torn.com/v2/market/itemmarket/523?&key= 

    It looks like this change broke service caching for this type of request (but just in v2):
    https://api.torn.com/v2/market/149?selections=itemmarket&key= 

    Anyhow, I'm looking into it! Thanks for reporting.

    Last edited by splent on 15:21:13 - 29/10/24 (1 month ago)
    • Glasnost [1844049]
    • Role: Committee
    • Level: 68
    • Posts: 428
    • Karma: 2,175
    • Last Action: 20 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:50:15 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    Co-owner and Developer of TornPal

    TornPal API - Extract market & bazaar data with your own tools/sheets

    • MightyGoober [812478]
    • Role: Civilian
    • Level: 100
    • Posts: 6,333
    • Karma: 19,088
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:05:55 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Manuito [2225097]

    Unless I'm mistaken, in v2, this three nullables:

     

          "nullable": "true"

     

    should be really be

     

           "nullable": true

     

    (no commas):

     

     

                "ItemMarketListingItemStats": {
                    "properties": {
                        "damage": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "accuracy": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "armor": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        }
                    },
                    "type": "object"
                },

     

     

    Otherwise it's causing a parsing error when automating the swagger model creation.

    splent [2088243]

    Thanks - I've fixed these now I think?

    If everything goes as planned, this week I should finish v2 upgrade where requests will also work in this format: "/v2/user/crimes/1/" (or "/v2/user/crimes,timestamp/1/" when requesting multiple selections) and all endpoints will have their paths fixed (e.g. from /user/?selection=crimes to /user/crimes/). 

     

    Hopefully that will fix all code-gen issues!

    You're going to leave it as "v2", and have a version id at the end too?

     
    That's kinda ugly to put into stone don't you think?

     

    /splent/user/crimes/1 is much better right?

    Anything but v2/foo/bar/1

     

    Confusing to first time devs of Torn.

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:47:23 - 29/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey, that should be fixed now!

    Let me know if there's anything else.

    Thanks!

    Silmaril [2665762]

    Again it's broken.

    But in other way.

    Now it gives you cached version of the previous item u requested, even though u request totally DIFFERENT item.

    You probably added caching based on time, but also need to add itemId as another key component.

     

    Hey, 


    The caching issue should be resolved now. Let me know if you're experiencing any more issues. 

    On a side note, I noticed there are "null" values being returned in the "item" field when there are no such items on market (e.g. https://api.torn.com/v2/market/itemmarket/526?key=), so I'll fix that tomorrow. 

    Thanks again.

    • DieselBlade [1701621]
    • Role: Wiki Contributor
    • Level: 56
    • Posts: 1,499
    • Karma: 1,314
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:20:51 - 30/10/24 (1 month ago)
    Post link copied to clipboard Copy post link

    splent [2088243]

    Hey everyone!


    I'm excited to announce item market API is back. We now have:

    • 'user' -> 'itemmarket' which can be accessed with a limited API key or higher. This selection returns only your item market listings
    • 'market' -> 'itemmarket' is now back, however in somewhat limited edition. It's possible to go through item market listings for a specific item in this selection and additionally filter weapons by a specific bonus

     

    In the upcoming weeks, the plan is to add additional filtering options if everything goes well (price, damage, accuracy, armor) and sorting options (ascending & descending).

    You will also notice that currently 'market' -> 'itemmarket' selection does not contain information about the seller. This is partially due to some system limitations I have to deal with first, but also partially because of some concerns with mug bots.

    It's still not fully decided if this information will be added or not, so your opinion and feedback is more than welcome here!

    Additionally, we'll be retiring 'market' -> 'bazaar' selection in approx. 2 weeks time, as it currently doesn't bring much value.
    However, as soon as bazaars are updated or in case they become visible in another part of the system, I'll be more than happy to bring back bazaar API.

    Edit: As always, these selection are now also available in Swagger, just make sure to update your cache.

    Edit 2: There was a small update on 'torn' -> 'itemstats' selection. It will now return "0" for the "first_owner" field, if the item is listed anonymously on the market.

    Thanks!

    The value for rarity is missing, i.e. yellow, orange, red.

    8db021b7-6a5d-4507-ab53-6ac6b2fa27de-1701621.gif

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:35:08 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Glasnost [1844049]

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    Hey, 

    I'm not sure I quite get what you mean. If you're talking about 'user' -> 'bazaar' selection, it has 30s cache to help prevent mug bots, so it could happen that an item is sold, but the API still shows it as "available". So there isn't "locked for purchase" state that I could share.
    Bazaar owners do get real-time data with "limited", "full" or "custom" keys though.

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:44:21 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Manuito [2225097]

    Unless I'm mistaken, in v2, this three nullables:

     

          "nullable": "true"

     

    should be really be

     

           "nullable": true

     

    (no commas):

     

     

                "ItemMarketListingItemStats": {
                    "properties": {
                        "damage": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "accuracy": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "armor": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        }
                    },
                    "type": "object"
                },

     

     

    Otherwise it's causing a parsing error when automating the swagger model creation.

    splent [2088243]

    Thanks - I've fixed these now I think?

    If everything goes as planned, this week I should finish v2 upgrade where requests will also work in this format: "/v2/user/crimes/1/" (or "/v2/user/crimes,timestamp/1/" when requesting multiple selections) and all endpoints will have their paths fixed (e.g. from /user/?selection=crimes to /user/crimes/). 

     

    Hopefully that will fix all code-gen issues!

    MightyGoober [812478]

    You're going to leave it as "v2", and have a version id at the end too?

     
    That's kinda ugly to put into stone don't you think?

     

    /splent/user/crimes/1 is much better right?

    Anything but v2/foo/bar/1

     

    Confusing to first time devs of Torn.

    Looks like this will change a bit after all. After some internal discussion with another developer, we decided the API v2 format to be this:

    • /v2/section/selection or 
    • /v2/section/{id}/selection

    So e.g. "/v2/user/1/bazaar/" or "/v2/user/1/bazaar" or "/v2/user/merits/" or "/v2/user/merits" 

    --

    Just to clarify, because I'm not sure I 100% understand what you mean with this:

    You're going to leave it as "v2", and have a version id at the end too?


    That on the end is not a version id, but an id of something (user, faction, company, itemmarket listing etc.), so in Swagger, for new developers, it should look like this:

    Base URL: https://api.torn.com/v2
    Endpoint: /torn/{id}/subcrimes

    I think that shouldn't be confusing as the meaning of "id" is described in Swagger as well? 

    • Glasnost [1844049]
    • Role: Committee
    • Level: 68
    • Posts: 428
    • Karma: 2,175
    • Last Action: 20 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:32:45 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Glasnost [1844049]

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    splent [2088243]

    Hey, 

    I'm not sure I quite get what you mean. If you're talking about 'user' -> 'bazaar' selection, it has 30s cache to help prevent mug bots, so it could happen that an item is sold, but the API still shows it as "available". So there isn't "locked for purchase" state that I could share.
    Bazaar owners do get real-time data with "limited", "full" or "custom" keys though.

    For example:

    https://www.torn.com/bazaar.php?userId=711817#/

     

    It has no option to purchase it.

     

    2024-11-04-fayqVgzTJEmy.png

    2024-11-04-3d8hZayvJPqm.png

     

    Co-owner and Developer of TornPal

    TornPal API - Extract market & bazaar data with your own tools/sheets

    • Omanpx [1906686]
    • Role: Civilian
    • Level: 100
    • Posts: 2,455
    • Karma: 15,757
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 11:57:30 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Glasnost [1844049]

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    splent [2088243]

    Hey, 

    I'm not sure I quite get what you mean. If you're talking about 'user' -> 'bazaar' selection, it has 30s cache to help prevent mug bots, so it could happen that an item is sold, but the API still shows it as "available". So there isn't "locked for purchase" state that I could share.
    Bazaar owners do get real-time data with "limited", "full" or "custom" keys though.

    Glasnost [1844049]

    For example:

    https://www.torn.com/bazaar.php?userId=711817#/

     

    It has no option to purchase it.

     

    2024-11-04-fayqVgzTJEmy.png

    2024-11-04-3d8hZayvJPqm.png

     

    That is sort of the idea behind $1 items though, isn't it? So that it's a lottery who can buy them and people go looking through a bunch of bazaars to maybe find something new along their search, sort of a boost to trader advertisements. AFAIK it's locked to certain user IDs (or a range / list of IDs) and determined upon listing the item at $1.

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

    Guidebook - a collection of guides i made for Torn.

    • MightyGoober [812478]
    • Role: Civilian
    • Level: 100
    • Posts: 6,333
    • Karma: 19,088
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:25:24 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Manuito [2225097]

    Unless I'm mistaken, in v2, this three nullables:

     

          "nullable": "true"

     

    should be really be

     

           "nullable": true

     

    (no commas):

     

     

                "ItemMarketListingItemStats": {
                    "properties": {
                        "damage": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "accuracy": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        },
                        "armor": {
                            "type": "number",
                            "format": "float",
                            "nullable": "true"
                        }
                    },
                    "type": "object"
                },

     

     

    Otherwise it's causing a parsing error when automating the swagger model creation.

    splent [2088243]

    Thanks - I've fixed these now I think?

    If everything goes as planned, this week I should finish v2 upgrade where requests will also work in this format: "/v2/user/crimes/1/" (or "/v2/user/crimes,timestamp/1/" when requesting multiple selections) and all endpoints will have their paths fixed (e.g. from /user/?selection=crimes to /user/crimes/). 

     

    Hopefully that will fix all code-gen issues!

    MightyGoober [812478]

    You're going to leave it as "v2", and have a version id at the end too?

     
    That's kinda ugly to put into stone don't you think?

     

    /splent/user/crimes/1 is much better right?

    Anything but v2/foo/bar/1

     

    Confusing to first time devs of Torn.

    splent [2088243]

    Looks like this will change a bit after all. After some internal discussion with another developer, we decided the API v2 format to be this:

    • /v2/section/selection or 
    • /v2/section/{id}/selection

    So e.g. "/v2/user/1/bazaar/" or "/v2/user/1/bazaar" or "/v2/user/merits/" or "/v2/user/merits" 

    --

    Just to clarify, because I'm not sure I 100% understand what you mean with this:

    You're going to leave it as "v2", and have a version id at the end too?


    That on the end is not a version id, but an id of something (user, faction, company, itemmarket listing etc.), so in Swagger, for new developers, it should look like this:

    Base URL: https://api.torn.com/v2
    Endpoint: /torn/{id}/subcrimes

    I think that shouldn't be confusing as the meaning of "id" is described in Swagger as well? 

    whoops, gotcha.

     

    Even still, the /v2/ prefix on everything is a little ugly IMO, but it's all hidden to the average user, so I guess it's not a big deal.

    • Kwack [2190604]
    • Role: Civilian
    • Level: 15
    • Posts: 2,137
    • Karma: 3,448
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:04:03 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    MightyGoober [812478]

    whoops, gotcha.

     

    Even still, the /v2/ prefix on everything is a little ugly IMO, but it's all hidden to the average user, so I guess it's not a big deal.

    Why don't you like it? Putting the version number in the URL is a pretty common practice as far as I'm aware (example: discord). Admittedly most would do `https://torn.com/api/v2/` instead of `https://api.torn.com/v2/`, but that's a seperate issue

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:09:02 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Glasnost [1844049]

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    splent [2088243]

    Hey, 

    I'm not sure I quite get what you mean. If you're talking about 'user' -> 'bazaar' selection, it has 30s cache to help prevent mug bots, so it could happen that an item is sold, but the API still shows it as "available". So there isn't "locked for purchase" state that I could share.
    Bazaar owners do get real-time data with "limited", "full" or "custom" keys though.

    Glasnost [1844049]

    For example:

    https://www.torn.com/bazaar.php?userId=711817#/

     

    It has no option to purchase it.

     

    2024-11-04-fayqVgzTJEmy.png

    2024-11-04-3d8hZayvJPqm.png

     

    Omanpx [1906686]

    That is sort of the idea behind $1 items though, isn't it? So that it's a lottery who can buy them and people go looking through a bunch of bazaars to maybe find something new along their search, sort of a boost to trader advertisements. AFAIK it's locked to certain user IDs (or a range / list of IDs) and determined upon listing the item at $1.

    Are you sure? I'm like 90% sure these are locked for everyone until the "Black Friday" event, when they become purchasable to everyone. 

    I just added an item to my bazaar for $1 and it's not purchasable, and I don't have an option to change that either. I'm pretty sure these weren't visible on the old item market either?

    I could be wrong though, I never really paid attention to Black Friday sales.

    I stand corrected! 

    Last edited by splent on 18:27:12 - 04/11/24 (1 month ago)
    • MightyGoober [812478]
    • Role: Civilian
    • Level: 100
    • Posts: 6,333
    • Karma: 19,088
    • Last Action: 2 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:13:19 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Glasnost [1844049]

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    splent [2088243]

    Hey, 

    I'm not sure I quite get what you mean. If you're talking about 'user' -> 'bazaar' selection, it has 30s cache to help prevent mug bots, so it could happen that an item is sold, but the API still shows it as "available". So there isn't "locked for purchase" state that I could share.
    Bazaar owners do get real-time data with "limited", "full" or "custom" keys though.

    Glasnost [1844049]

    For example:

    https://www.torn.com/bazaar.php?userId=711817#/

     

    It has no option to purchase it.

     

    2024-11-04-fayqVgzTJEmy.png

    2024-11-04-3d8hZayvJPqm.png

     

    Omanpx [1906686]

    That is sort of the idea behind $1 items though, isn't it? So that it's a lottery who can buy them and people go looking through a bunch of bazaars to maybe find something new along their search, sort of a boost to trader advertisements. AFAIK it's locked to certain user IDs (or a range / list of IDs) and determined upon listing the item at $1.

    splent [2088243]

    Are you sure? I'm like 90% sure these are locked for everyone until the "Black Friday" event, when they become purchasable to everyone. 

    I just added an item to my bazaar for $1 and it's not purchasable, and I don't have an option to change that either. I'm pretty sure these weren't visible on the old item market either?

    I could be wrong though, I never really paid attention to Black Friday sales.

    I stand corrected! 

    It was added because of black friday, but the $1 limited buy system works year round

    • byrod [1132772]
    • Role: Civilian
    • Level: 100
    • Posts: 2,529
    • Karma: 4,022
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:14:09 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Glasnost [1844049]

    For both API v1 (and when it comes, v2), can we get a field to indicate whether items are locked for purchase in bazaars? The data isn't available and when building market tools, it frustrates people to visit a bazaar only to find the item can't be purchased, and it is locked at the top of a page as the cheapest.

    splent [2088243]

    Hey, 

    I'm not sure I quite get what you mean. If you're talking about 'user' -> 'bazaar' selection, it has 30s cache to help prevent mug bots, so it could happen that an item is sold, but the API still shows it as "available". So there isn't "locked for purchase" state that I could share.
    Bazaar owners do get real-time data with "limited", "full" or "custom" keys though.

    Glasnost [1844049]

    For example:

    https://www.torn.com/bazaar.php?userId=711817#/

     

    It has no option to purchase it.

     

    2024-11-04-fayqVgzTJEmy.png

    2024-11-04-3d8hZayvJPqm.png

     

    Omanpx [1906686]

    That is sort of the idea behind $1 items though, isn't it? So that it's a lottery who can buy them and people go looking through a bunch of bazaars to maybe find something new along their search, sort of a boost to trader advertisements. AFAIK it's locked to certain user IDs (or a range / list of IDs) and determined upon listing the item at $1.

    splent [2088243]

    Are you sure? I'm like 90% sure these are locked for everyone until the "Black Friday" event, when they become purchasable to everyone. 

    I just added an item to my bazaar for $1 and it's not purchasable, and I don't have an option to change that either. I'm pretty sure these weren't visible on the old item market either?

    I could be wrong though, I never really paid attention to Black Friday sales.

    I stand corrected! 

    As sure as the patchlist from 2021 is:

    - Added a Dollar Sale system to Bazaars where $1 listings are only available to limited random individuals

     

    So yes, $1 items are available to random players. This is not limited to Black Friday.

    TornEngine

    • splent [2088243]
    • Role: Admin
    • Level: 95
    • Posts: 736
    • Karma: 2,032
    • Last Action: 3 hours
      • 1
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:25:51 - 04/11/24 (1 month ago)
    Post link copied to clipboard Copy post link

    Hey everyone, several fixes and smaller improvements today: 

    • Added 'rarity' field ("yellow", "orange", "red" or null) to 'user' -> 'itemmarket' and 'market' -> 'itemmarket' selections
    • The "item" field should now always be populated in "market' -> 'itemmarket' even if there are no listings
    • Added a few more bonus filters: "Any", "Double", "Yellow", "Orange" & "Red"
    • The 'torn' -> 'itemstats' will now return "0" for "owner_id" if the item is being sold anonymously on market OR if it was never used
    • Fixed 'user' -> 'hof' selection from returning incorrect values for some players
    • Weapon bonuses in Swagger are now sorted alphabetically (lol i know it was important to some)

     

    As always, Swagger schema is updated to reflect these changes.


    Important note!

    We'll be closing 'market' -> 'bazaar' selection in two weeks, as it doesn't serve much purpose currently.

    I know instead many would rather if we added global cache and bazaar owner information to this selection, but unfortunately, because this information is no longer visible anywhere else in Torn it needs to be removed.
    However, as soon as, or, if bazaars appear somewhere else in Torn, I'll be more than happy to prioritize that and create a relatable selection ASAP.

    Thanks!


Reply
Thread Title: