Description

Metrics related to Decentralized Exchanges (DEX) trades of ERC20 tokens and ETH.

Segmented by DEX:

  • total_trade_volume_by_dex - Volume of all trades
  • eth_based_trade_volume_by_dex - Volume of trades that involve ETH-Based tokens1
  • stablecoin_trade_volume_by_dex - Volume of trades that involve Stablecoins2
  • other_trade_volume_by_dex - Volume of trades that involve tokens that don't fall in any of the above categories (e.g. BAT)
  • total_trade_amount_by_dex - Amount of all trades
  • eth_based_trade_amount_by_dex - Amount of trades that involve ETH-Based tokens1
  • stablecoin_trade_amount_by_dex - Amount of trades that involve Stablecoins2
  • other_trade_amount_by_dex - Amount of trades that involve tokens that don't fall in any of the above categories (e.g. BAT)

Segmented by DEX and asset:

  • eth_trade_volume_by_token - Volume of trades between ETH-Based tokens and a given ERC20 token
  • stablecoin_trade_volume_by_token - Volume of trades between Stablecoins2 and a given ERC20 token
  • token_eth_price_by_dex_5m - Token ETH price segmented by DEX for trades between ETH-Based tokens1 and a given ERC20 token

ETH Based Tokens

ETH, ETH Kyber, WETH, ETHWrapped and Bancor ETH.

USD-based Stablecoins

Tether, USD coin, DAI, Binance USD, TrueUSD and etc.

Access

Restricted Access.


Measuring Unit

  • total_trade_amount_by_dex, eth_based_trade_amount_by_dex, stablecoin_trade_amount_by_dex, other_trade_amount_by_dex - Number of trades
  • token_eth_price_by_dex_5m - Amount of ETH per coin
  • Other - Amount of coins

Data Type

Timeseries Data


Frequency

Five-minute Intervals


Latency

Price Latency


Available Assets

  • total_trade_volume_by_dex, eth_based_trade_volume_by_dex, stablecoin_trade_volume_by_dex, other_trade_volume_by_dex -
    ethereum, multi-collateral-dai, bitcoin
  • total_trade_amount_by_dex, eth_based_trade_amount_by_dex, stablecoin_trade_amount_by_dex, other_trade_amount_by_dex -
    multi-collateral-dai
  • eth_trade_volume_by_token, stablecoin_trade_volume_by_token, token_eth_price_by_dex_5m -
    All ERC20 assets

SanAPI

Total Trade Volume by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "total_trade_volume_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "UniswapV2"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

ETH-Based Tokens Trade Volume by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "eth_based_trade_volume_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Stablecoin Trade Volume by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "stablecoin_trade_volume_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Other Token Trade Volume by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "other_trade_volume_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Total Trade Amount by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "total_trade_amount_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

ETH-based Tokens Trade Amount by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "eth_based_trade_amount_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Stablecoin Trade Amount by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "stablecoin_trade_amount_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Other Trade Amount by DEX:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "other_trade_amount_by_dex") {
    timeseriesData(
      selector: {
        slug: "multi-collateral-dai"
      	owner: "balancer"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

ETH-Based Token Trade Volume by DEX and Token:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "eth_trade_volume_by_token") {
    timeseriesData(
      selector: {
        slug: "basic-attention-token"
      	owner: "UniswapV2"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Stablecoin Trade Volume by DEX and Token:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "stablecoin_trade_volume_by_token") {
    timeseriesData(
      selector: {
        slug: "tether"
      	owner: "curve"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Token ETH Price by DEX

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  getMetric(metric: "token_eth_price_by_dex_5m") {
    timeseriesData(
      selector: {
        slug: "basic-attention-token"
      	owner: "UniswapV2"
      	label: "decentralized_exchange"
      }
      from: "2021-01-01T00:00:00Z"
      to: "2021-01-07T00:00:00Z"
      interval: "5m"
    ) {
      datetime
      value
    }
  }
}

Run in Explorer

Was this article helpful?