---
title: "public/get_perp_impact_twap"
method: POST
path: "/public/get_perp_impact_twap"
tags: ["Market Data"]
---

# public/get_perp_impact_twap

`POST /public/get_perp_impact_twap`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/public/get_perp_impact_twap`
- Auth: none declared

Returns TWAPs of the perp mid, ask impact and bid impact prices minus spot for a `currency` between `start_time` and `end_time` (unix seconds).

## Request body

- GetPerpImpactTwapRequest: Parameters for `public/get_perp_impact_twap`. Timestamps are unix seconds, as either a JSON number or a string-encoded integer.
  - `currency` string, required
  - `end_time` integer, required
  - `start_time` integer, required

## Response `200`

Success

- PerpImpactTwapResult: TWAPs of the perp mid, ask impact and bid impact prices minus spot.
  - `ask_impact_diff_twap` string, required
  - `bid_impact_diff_twap` string, required
  - `currency` string, required
  - `mid_price_diff_twap` string, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-10-20** `0c500202be49`: 1 info
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/public/get_perp_impact_twap/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
