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

Method buy_now

csfloat_client.py:458–469  ·  view source on GitHub ↗
(
            self, *, total_price: int, listing_id: str
    )

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 1

_requestMethod · 0.95

Tested by

no test coverage detected