🎯Information and Utilities API Usage Guide
Network Information
Blockchain Network: Ethereum Mainnet
DEX Information: All DEX information is derived from Uniswap V3 pools.
Xtreamly API Documentation
Overview
This document outlines the APIs available under two categories:
Information from Uniswap V3 Pools
different types of slippage
Please ensure you have the necessary permissions and credentials to access these APIs.
Information from Uniswap V3 Pools
Uniswap V3 Volatility Report for All Pools
Endpoint:
GET /api/v1/Volatility/GetVolatilityForAllPools
Description: Retrieves the standard deviation of price, variance, and average true range for each supported pool address.
Parameters:
start
(required): Start time of the report period, in epoch seconds UTC.end
(required): End time of the report period, in epoch seconds UTC.
Example Request:
Uniswap V3 Volatility Report for a Specific Pool
Endpoint:
GET /api/v1/Volatility/GetVolatilityForPool
Description: Retrieves the volatility data (standard deviation, variance, average true range) for a specified pool address.
Parameters:
start
(required): Start time of the report period, in epoch seconds UTC.end
(required): End time of the report period, in epoch seconds UTC.poolAddress
(required): Ethereum address of the Uniswap V3 pool.
Example Request:
(Description and endpoints for Web3 Utilities will be added once available.)
Uniswap Pool Trade Volume for All Tokens
Endpoint:
GET /api/v1/Volume/GetVolumeForAllTokens
Description: Returns the volume of all trades and swaps monitored by Xtreamly in a given time period.
Parameters:
start
(required): Start timestamp of the period in epoch seconds UTC.end
(required): End timestamp of the period in epoch seconds UTC.
Example Request:
Uniswap Pool Trade Volume for a Specific Token
Endpoint:
GET /api/v1/Volume/GetVolumeForToken
Description: Returns trade volume data for a specific token contract address within a given time period.
Parameters:
tokenAddress
(required): Ethereum token contract address.start
(required): Start timestamp of the period in epoch seconds UTC.end
(required): End timestamp of the period in epoch seconds UTC.
Example Request:
Get Supported Pools
Endpoint:
GET /api/v1/Info/GetSupportedPools
Description: Returns the list of supported pools for the current version of Xtreamly.
Example Request:
Impermanent Loss for All Supported Uniswap V3 Pools
Endpoint:
GET /api/v1/ImpermanentLoss/GetForAllPools
Description: Returns information about minted, collected, and burnt positions on all pools in USD and calculates impermanent loss for each pool for a given time period.
Parameters:
startTime
(required): Start time of the period in epoch milliseconds UTC.endTime
(required): End time of the period in epoch milliseconds UTC.
Example Request:
Impermanent Loss for a Specific Supported Pool in Uniswap V3
Endpoint:
GET /api/v1/ImpermanentLoss/GetForPool
Description: Returns information about minted, collected, and burnt positions as well as impermanent loss for a specific pool for a given time period.
Parameters:
startTime
(required): Start time of the period in epoch milliseconds UTC.endTime
(required): End time of the period in epoch milliseconds UTC.pool
(required): Ethereum address of the Uniswap V3 pool.
Example Request:
Block Information
Endpoint:
GET /api/v1/Utilities/BlockInfo
Description: Returns information of a specified block.
Parameters:
blockNumber
(required): The number of the block for which information is requested.
Example Request:
Block-to-TimeBlock to Time Conversion
Endpoint:
GET /api/v1/Utilities/BlockToTime
Description: Returns the timestamp of a specified block.
Parameters:
blockNumber
(required): The block number to convert to a timestamp.
Example Request:
Time to Block Conversion
Endpoint:
GET /api/v1/Utilities/TimeToBlock
Description: Returns the nearest block number to a given timestamp.
Parameters:
timestamp
(required): The timestamp in epoch Unix seconds to convert to a block number.
Example Request:
Last updated