Global TWAP
Definition
TWAP (Time Weighted Average Price) is the average price that an asset is traded at during a specified time window, rather than it's end of day price. It is an aggregated form of price data. Global TWAP uses time weighted average price across all exchanges available for the asset.
Amberdata provides TWAP data aggregated minutely, hourly, or daily for all decentralized exchanges we cover, with historical data as far back as the genesis block for any of our supported networks.
TWAP provides traders with insight into both the trend and value of an asset.
Details
TWAP is calculated across all decentralized exchanges with a 1 minute frequency and a configurable lookback period. The prices for this endpoint are denominated in ETH. It is derived from the OHLCV data with the following calculation: (O+H+L+C) / 4.
API Endpoints
/market/defi/twap/asset/information
/market/defi/twap/asset/{asset}/latest
/market/defi/twap/asset/{asset}/historical
/market/defi/twap/pairs/information
/market/defi/twap/pairs/bases/{base}/quotes/{quote}/latest
/market/defi/twap/pairs/bases/{base}/quotes/{quote}/historical
Availability
Our TWAP endpoints are available via REST API for historical (time series) data and is updated each time a new block is mined. TWAP data is available for every asset and trading pair on every DEX we support.
Frequently Asked Questions
Who uses TWAP?
- The TWAP execution strategy is a success amongst traders who do High-Frequency Trading or other types of Quantitative trading like algorithmic trading. It simply divides the large orders into small portions and makes it easier for investors.
Does TWAP affect volatility in markets?
- No, TWAP signals do not affect the volatility of the markets. In the case of the TWAP execution trading strategy, the trader can place a huge volume of trade orders and then transact at a single price. This is true even if it takes a long time to completely execute the trade order. Hence, huge trade orders can be implemented easily.
How is TWAP different from VWAP?
- TWAP and VWAP have the following key differences:
- Timing - TWAP is calculated by weighing it on the basis of time whereas VWAP is calculated on the basis of volume and time.
- Process - It is easier to calculate the value of TWAP as compared to VWAP since VWAP involves a complicated process to calculate the value of the weighted average price.
- Small Volume of Transactions - With TWAP, it is easier to calculate the small volume of transactions but not with VWAP.
Updated over 1 year ago