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

Method _validate_role

csfloat_client.py:117–120  ·  view source on GitHub ↗
(self, role: str)

Source from the content-addressed store, hash-verified

115 raise ValueError(f'Unknown type parameter "{type_}"')
116
117 def _validate_role(self, role: str) -> None:
118 valid_roles = ("seller", "buyer")
119 if role not in valid_roles:
120 raise ValueError(f'Unknown role parameter: {role}')
121
122 async def get_exchange_rates(self) -> Optional[dict]:
123 parameters = "/meta/exchange-rates"

Callers 1

get_trade_historyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected