Skip to content

Get Price

Retrieve the current market price for a specified market, identified by its market ID.

Method Declaration

Python
async def get_price(self, market_id: int) -> market_price_type.MarketPrice

Parameters

ParameterLocationTypeRequiredDescription
market_idqueryu32trueID of the market to fetch price of

Response

StatusMeaningSchema
200OKMarketPrice
400Bad RequestThe request was malformed or invalid.
404Not FoundThe market was not found.

Examples: Python | Rust | API