(
self, *, total_price: int, listing_id: str
)
| 456 | return response |
| 457 | |
| 458 | async def buy_now( |
| 459 | self, *, total_price: int, listing_id: str |
| 460 | ) -> Optional[dict]: |
| 461 | parameters = "/listings/buy" |
| 462 | method = "POST" |
| 463 | |
| 464 | json_data = { |
| 465 | "total_price": total_price, |
| 466 | "contract_ids": [str(listing_id)] |
| 467 | } |
| 468 | response = await self._request(method=method, parameters=parameters, json_data=json_data) |
| 469 | return response |
| 470 | |
| 471 | async def accept_sale(self, *, trade_ids: list[str]): |
| 472 | parameters = "trades/bulk/accept" |