Skip to main content

twap

This module exports helpers for validating and deriving TWAP order timing.

Exports

  • getIsValidTwapParams
  • getTwapDurationInSeconds
  • getTwapValidFromTime
  • changeTwapNumberOfPartsValue
  • getTwapOrderKey
  • makeTwapValidFromTimeGetter
  • Re-exported types: TwapDuration, TwapOrderParams, TwapPartParams
import { getIsValidTwapParams, getTwapOrderKey } from "@gmx-io/sdk/utils/twap";