The page includes a list of all available Token data endpoints on DIA network. To review the data sources and methodologies used for pricing, visit the following page:
GET
https://api.diadata.org/v1/assetQuotation/:blockchain/:asset
Returns the quotation for a fully qualified asset (i.e. distinguished by blockchain and address). Quotations are obtained by filtering trades data with a Moving Average filter and Interquartile Range outlier detection (MAIR).
Example:
Name | Type | Description |
---|
GET
https://api.diadata.org/v1/quotation/:symbol
Get most recent information on the currency corresponding to symbol. Quotations are obtained by filtering trades data with a Moving Average filter and Interquartile Range outlier detection (MAIR).
Note: this endpoint is intended for testing purposes only; if multiple assets with the same symbol exists, data for the highest volume generating asset will be returned
GET
https://api.diadata.org/v1/quotedAssets
Returns a list of assets available for quotations.
Use the query parameter blockchain in order to obtain exclusively assets on the selected blockchain.
GET
https://api.diadata.org/v1/synthasset/:blockchain/:protocol
The endpoint provides information on the health factor of DeFi protocols.
It takes into consideration outstanding loans, contracts' balance and compares it to synthetic token issuance. This helps to make sure that all assets are fully collateralized.
Exemplary query:
Currently only Aave V2 and Aave V3 are supported on Ethereum and Avalanche blockchains.
It is possible to receive collateral information for a single token by using token filter as in example below:
To receive all asset updates data during the selected period use starttime
and endtime
filter parameters with timestamps as inputs. Here is an example:
GET
https://api.diadata.org/v1/poolLiquidity/:blockchain/:pool_address
GET
https://api.diadata.org/v1/poolSlippage/:blockchain/:pool_address/:token1_address/:pool_type/:desired_slippage
To predict the amount of tokens required to reach a specified slippage, you can use Pool Slippage
endpoint. It works for any pool that exists on Uniswap V2 or any fork DEX on supported list of exchanges.
The logic is as follows:
Provide the address of the pool, select a token in which you wish to have slippage calculated (e.g. if selected ETH from ETH-USDC, it will show how much is ETH is required to move the price by selected amount) and determine the goal for price movement.
GET
https://api.diadata.org/v1/blockchains
Get a list of all available blockchains.
GET
https://api.diadata.org/v1/exchanges
Get a list of all available crypto exchanges.
GET
https://api.diadata.org/v1/pairsCex/:exchange
Get all pairs on a given exchange for which DIA is collecting trades data at the moment.
Use the query parameter verified in order to get either verified or unverified pairs.
GET
https://api.diadata.org/v1/pairsAssetCex/:blockchain/:address
Get all pairs on a centralized exchange for which DIA is collecting trades data at the moment. Include pairs across all exchanges involving the requested asset as either base- or quote token.
Use the query parameter verified in order to get either verified or unverified pairs.
GET
https://api.diadata.org/v1/lastTradesAsset/:blockchain/:address
Get last trade timestamp for an asset.
GET
https://api.diadata.org/v1/chartPoints/:filter/:exchange/:symbol
Get chart points for an exchange.
GET
https://api.diadata.org/v1/assetChartPoints/:filter/:blockchain/:address
Get asset details for all exchanges.
Remark: Careful! Successful responses can be rather large.
GET
https://api.diadata.org/v1/foreignSymbols/:source
Get the list of available symbols along with their ITIN for guest quotations.
GET
https://api.diadata.org/v1/foreignQuotation/:source/:symbol
Get the latest quotation for a token from a guest source.
Example:
Name | Type | Description |
---|
Example:
Example:
Name | Type | Description |
---|
Name | Type | Description |
---|
Get the latest state of a DEX pool's liquidity. Example:
Name | Type | Description |
---|
Here is an exemplary API call:
Name | Type | Description |
---|
Example:
Example:
Name | Type | Description |
---|
Name | Type | Description |
---|
Example:
Example:
Name | Type | Description |
---|
Name | Type | Description |
---|
Example:
Name | Type | Description |
---|
Example: Note: Successful responses can be rather large.
Name | Type | Description |
---|
Name | Type | Description |
---|
Example:
Name | Type | Description |
---|
Name | Type | Description |
---|
Example:
Name | Type | Description |
---|
Example: Use the query parameter time in order to get the latest quotation before the specified timestamp
Example:
Name | Type | Description |
---|
Name | Type | Description |
---|