Market Data

public/get_perp_impact_twap

Changed on

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).

post/public/get_perp_impact_twap

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    none declared

Request body

GetPerpImpactTwapRequest required

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

Success

PerpImpactTwapResult required

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

Changes