【问题标题】:Buy and Sell orders of an item in Steam API/JSONSteam API/JSON 中的物品买卖订单
【发布时间】:2021-12-15 18:24:54
【问题描述】:

我正在尝试获取 JSON 格式的买卖订单,例如价格历史记录,但找不到任何信息。有没有办法做到这一点?

Buy and Sell orders screenshot

我试过了:

https://steamcommunity.com/market/pricehistory/?country=ru&currency=3&appid=730&market_hash_name=Operation%20Riptide%20Case

还有:

https://steamcommunity.com/market/listings/730/AWP%20%7C%20Asiimov%20%28Field-Tested%29/render?start=0&count=1&currency=3&language=english&format=json

但它们不显示买卖订单。谢谢

【问题讨论】:

    标签: steam steam-web-api steamworks-api steambot


    【解决方案1】:

    试试这个端点:https://steamcommunity.com/market/itemordershistogram

    这是热门商品市场页面底部的订单图表,但您可以为任何商品获取它。参数为:countrycurrencylanguageitem_nameidtwo_factor

    仅举例参数,我的countrycurrencylanguage分别是US1(USD)和englishtwo_factor 始终可以设置为 0item_nameid 定义了您要查找的项目。没有一种简单的方法可以找到它,但是您可以从这里 https://steamcommunity.com/market/listings/<appid>/<market_hash_name> 为您需要的每个项目刮掉它。您可以在页面源代码中找到它作为参数传递给 Market_LoadOrderSpread 函数。不过,从该页面抓取 id 的速率限制为每分钟约 5 个请求。

    祝你好运!

    【讨论】:

      猜你喜欢
      • 2016-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-12
      • 1970-01-01
      • 1970-01-01
      • 2022-10-08
      • 1970-01-01
      相关资源
      最近更新 更多