MCPcopy Create free account
hub / github.com/Rushifakami/csfloat_api / get_buy_orders

Method get_buy_orders

csfloat_client.py:185–200  ·  view source on GitHub ↗
(
            self, *, listing_id: int, limit: int = 10, raw_response: bool = False
    )

Source from the content-addressed store, hash-verified

183 return listings
184
185 async def get_buy_orders(
186 self, *, listing_id: int, limit: int = 10, raw_response: bool = False
187 ) -> Optional[list[BuyOrders]]:
188 parameters = f"/listings/{listing_id}/buy-orders?limit={limit}"
189 method = "GET"
190
191 response = await self._request(method=method, parameters=parameters)
192
193 if raw_response:
194 return response
195
196 listings = [
197 BuyOrders(data=item) for item in response
198 ]
199
200 return listings
201
202 async def get_my_buy_orders(self, *, page: int = 0, limit: int = 10):
203 parameters = f"/me/buy-orders?page={page}&limit={limit}&order=desc"

Callers

nothing calls this directly

Calls 2

_requestMethod · 0.95
BuyOrdersClass · 0.85

Tested by

no test coverage detected