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.MarketPriceParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
market_id | query | u32 | true | ID of the market to fetch price of |
Response
| Status | Meaning | Schema | |
|---|---|---|---|
200 | OK | MarketPrice | |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The market was not found. |