Prices Swap

This table can be used to price assets within the Algorand blockchain using on-chain swaps. Price is calculated by using all swaps within two standard deviations from the hour average price, calculating the average price at the dex level, then weighting the dex price by the previous day's volume to create a weighted average across all dexes.

FieldTypeDescription

BLOCK_HOUR

timestamp

The hour for which the price is valid

ASSET_ID

numeric

ID associated with the asset

ASSET_NAME

string

Name of the asset

PRICE_USD

numeric

This table can be used to price assets within the Algorand blockchain using on-chain swaps. Price is calculated by using all swaps within two standard deviations from the hour average price, calculating the average price at the dex level, then weighting the dex price by the previous day's volume to create a weighted average across all dexes.

MIN_PRICE_USD_HOUR

numeric

The lowest price found in a swap in the hour in USD

MAX_PRICE_USD_HOUR

numeric

The highest price found in a swap in the hour in USD

VOLATILITY_MEASURE

numeric

The difference between the min and max price for the hour

SWAPS_IN_HOUR

integer

The number of swap transactions in the hour that involved this asset

VOLUME_USD_IN_HOUR

numeric

The volume of swap transactions (in USD) in the hour for this asset

Last updated