Get Perpetual
Queries a specific perpetual contract by its unique perpetual ID, returning details about the contract.
Method Declaration
Python
async def get_perpetual(self, perpetual_id: int) -> QueryPerpetualResponseParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | query | u32 | true | Perpetual ID |
Response
| Status | Meaning | Schema | |
|---|---|---|---|
200 | OK | Perpetual | |
400 | Bad Request | The request was malformed or invalid. | |
404 | Not Found | The perpetual was not found. |