Get Sparklines
Retrieves sparkline data for perpetual markets.
Method Declaration
Python
async def get_perpetual_market_sparklines(
self,
period: str = TimePeriod.ONE_DAY
) -> dictParameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timePeriod | query | SparklineTimePeriod | true | The time period for the sparkline data (e.g., "ONE_DAY", "SEVEN_DAYS"). |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | SparklineResponseObject ⛁ | The sparkline data. |
400 | Bad Request | The request was malformed or invalid. |