A marriage of Market data with Blockchain data
Tags: blockchain, bitqueryapis
Published: 2020-12-02 07:13:23

---
title: A marriage of Market data with Blockchain data
published: true
date: 2020-11-16 21:18:01 UTC
tags: Blockchain,bitqueryapis
canonical_url: https://bitquery.io/blog/market-data-with-blockchain-data?utm_source=rss&utm_medium=rss&utm_campaign=market-data-with-blockchain-data
---

Blockchains don’t have any outside data. It means blockchains don’t know the fiat price of any asset or token. However, fiat data makes blockchain analytics more meaningful.

For example, it is easier to understand that today’s average bitcoin fee was .5 rather than it was 0.00003323 BTC.

Our motto at Bitquery is “Adding meaning to Blockchain data.” Therefore providing market data with our Onchain APIs was on our road map for a long time.

Today I am happy to tell you that we have added market data to our Ethereum dataset. Therefore now you can get fiat valued in our APIs when you query Ethereum data.

Market data will be helpful for many use cases, such as USD-based DEX or token analysis.

## How to get blockchain values in Fiat?

Let’s also understand how you can get USD based data using our APIs.

You need to add `(in: USD)` against any value for which you want a USD amount. For example, in the following query, we are adding `(in: USD)` against the `tradeAmount` .

In addition, you can also get these values in USDT and ETH. For example: `tradeAmount(in: USDT)` or `tradeAmount(in: ETH)`.

| <input type="hidden" value="https://graphql.bitquery.io">

 |

Here are a few more query examples with USD data.

<mark><strong>Note:</strong> Checkout our <a href="https://graphql.bitquery.io/">GraphQL playground</a>, we are making some improvements to make it easy to work with Blockchain data APIs. Another important thing to remember is that, you can use <a href="https://bitquery.io/blog/graphql-with-python-javascript-and-ruby">GraphQL queries as API</a>.</mark>

### Top DEX trades in USD

The following query gives you the top DEX trades based on USD value.

| <input type="hidden" value="https://graphql.bitquery.io">

 |

### Top DEX trades by Gas value in USD

The query below gives you trades with the highest Gas spent.

| <input type="hidden" value="https://graphql.bitquery.io">

 |

## USD based metrics on Biquery explorer

We also added some USD based metrics on explorer to show how market data enriches the blockchain data.

### DEX market share 

The following widget shows to DEX market share based on trade volume.

| 

 |

### Ethereum miners reward in USD

The widget below shows the Ethereum miner rewards in USD.

| 

 |

### DEX traded currencies

The following widget shows the top DEX currencies based on trading volume.

| 

 |

We believe mixing market data with blockchain data will help many analysts looking to build custom blockchain analytics. If you have any questions please, join our [Telegram group](https://t.me/Bloxy_info) and let us know.

You might also be interested in:

- [Ethereum DEX GraphQL APIs with Examples](https://bitquery.io/blog/ethereum-dex-graphql-api)
- [How to get newly created Ethereum Tokens?](https://bitquery.io/blog/newly-created-etheruem-token)
- [How to investigate an Ethereum address?](https://bitquery.io/blog/investigate-ethereum-address)
- [API to get Ethereum Smart Contract Events](https://bitquery.io/blog/ethereum-events-api)
- [Simple APIs to get Latest Uniswap Pair Listing](https://bitquery.io/blog/uniswap-pool-api)
- [ETH2.0 Analytical Explorer, Widgets, and GraphQL APIs](https://bitquery.io/blog/eth2-explorer-api-widgets)
- [The Graph vs Bitquery – Solving Blockchain Data Problems](https://bitquery.io/blog/thegraph-and-bitquery)
- [Analyzing Decentralized Exchange using Bitquery Blockchain Explorer](https://bitquery.io/blog/dex-blockchain-explorer)

#### **About** Bitquery

[**Bitquery**](https://bitquery.io/?source=blog&utm_medium=about_coinpath) is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

- **[Coinpath®](https://bitquery.io/products/coinpath?utm_source=blog) APIs** provide [blockchain money flow analysis](https://blog.bitquery.io/coinpath-blockchain-money-flow-apis) for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read [this to get started with Coinpath®](https://blog.bitquery.io/coinpath-api-get-start).

- **[Digital Assets API](https://bitquery.io/products/digital_assets?utm_source=blog&utm_medium=about)** provides index information related to all major cryptocurrencies, coins, and tokens. 

- **[DEX API](https://bitquery.io/products/dex?utm_source=blog&utm_medium=about)** provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our [Telegram channel](https://t.me/Bloxy_info) or email us at [hello@bitquery.io](mailto:hello@bitquery.io). Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

The post [A marriage of Market data with Blockchain data](https://bitquery.io/blog/market-data-with-blockchain-data) appeared first on [Bitquery](https://bitquery.io).