|
2 | 2 | from base_query import BaseQuery |
3 | 3 | from parameter import Parameter |
4 | 4 |
|
| 5 | +from ..schema.auction_house_listing import AuctionHouseListing |
| 6 | +from ..schema.auction_house_response import AuctionHouseResponse |
5 | 7 | from ..schema.bazaar_response_specialized import BazaarResponseSpecialized |
6 | 8 | from ..schema.market_item_market_response import MarketItemMarketResponse |
7 | 9 |
|
@@ -57,5 +59,53 @@ class MarketId(BaseQuery): |
57 | 59 | |
58 | 60 | """ |
59 | 61 |
|
| 62 | + auctionhouselisting = Path( |
| 63 | + "/market/{id}/auctionhouselisting", |
| 64 | + AuctionHouseListing, |
| 65 | + id=Parameter("id", "path", required=True, deprecated=False), |
| 66 | + timestamp=Parameter("timestamp", "query", required=False, deprecated=False), |
| 67 | + comment=Parameter("comment", "query", required=False, deprecated=False), |
| 68 | + key=Parameter("key", "query", required=False, deprecated=False), |
| 69 | + ) |
| 70 | + """ |
| 71 | + `/market/{id}/auctionhouselisting`: Get specific item auction house listings |
| 72 | + Requires public access key. |
| 73 | +
|
| 74 | + # Parameters |
| 75 | + - id : Listing id |
| 76 | + - timestamp : Timestamp to bypass cache |
| 77 | + - comment : Comment for your tool/service/bot/website to be visible in the logs. |
| 78 | + - key : API key (Public). It's not required to use this parameter when passing the API key via the Authorization header. |
| 79 | + |
| 80 | + """ |
| 81 | + |
| 82 | + auctionhouse = Path( |
| 83 | + "/market/{id}/auctionhouse", |
| 84 | + AuctionHouseResponse, |
| 85 | + id=Parameter("id", "path", required=True, deprecated=False), |
| 86 | + limit=Parameter("limit", "query", required=False, deprecated=False), |
| 87 | + sort=Parameter("sort", "query", required=False, deprecated=False), |
| 88 | + from_=Parameter("from", "query", required=False, deprecated=False), |
| 89 | + to=Parameter("to", "query", required=False, deprecated=False), |
| 90 | + timestamp=Parameter("timestamp", "query", required=False, deprecated=False), |
| 91 | + comment=Parameter("comment", "query", required=False, deprecated=False), |
| 92 | + key=Parameter("key", "query", required=False, deprecated=False), |
| 93 | + ) |
| 94 | + """ |
| 95 | + `/market/{id}/auctionhouse`: Get specific item auction house listings |
| 96 | + Requires public access key. |
| 97 | +
|
| 98 | + # Parameters |
| 99 | + - id : Item id |
| 100 | + - limit : N/A |
| 101 | + - sort : Sorted by the greatest timestamps |
| 102 | + - from_ : Timestamp that sets the lower limit for the data returned. Data returned will be after this time |
| 103 | + - to : Timestamp that sets the upper limit for the data returned. Data returned will be up to and including this time |
| 104 | + - timestamp : Timestamp to bypass cache |
| 105 | + - comment : Comment for your tool/service/bot/website to be visible in the logs. |
| 106 | + - key : API key (Public). It's not required to use this parameter when passing the API key via the Authorization header. |
| 107 | + |
| 108 | + """ |
| 109 | + |
60 | 110 | def __init__(self): |
61 | 111 | super().__init__(base_path="market/{id}") |
0 commit comments