# Get contract address all data using single query

**URL:** <https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [June 26, 2021, 7:46am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236 "2021-06-26T07:46:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [June 26, 2021, 1:45pm UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/2 "2021-06-26T13:45:31Z")

</div>

Basic Information Query example -

```auto
{
  ethereum(network: bsc) {
    address(address: {is: "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"}) {
      annotation
      address
      smartContract {
        contractType
        attributes{
          type
          name
        }
        currency {
          symbol
          name
          decimals
          tokenType
        }
      }
    }
  }
}

```

Price

> [@Token Price in USD for Binance Smart Chain](https://community.bitquery.io/t/token-price-in-usd-for-binance-smart-chain/44):
>
> Hi I am trying to get the USDT price of my BEP20 token and it returns null. This is the query I used to get the USDT value of my coin (SHIKO). So this is done as SHIKO - BNB - USDT(BinancePegged). query ($baseAddress: String!, $quoteAddress: String!, $connector1: String!, $from: ISO8601DateTime!, $interval: Int){ ethereum(network: bsc){ dexTrades( any: [ { baseCurrency: {is: $baseAddress} quoteCurrency: {is: $quoteAddress}}, { baseCurrency: {is: $baseAddress} quoteCurrency: {is: $…

Change 24h

> [@Getting Last, 24h, 7d dextrade prices in one query?](https://community.bitquery.io/t/getting-last-24h-7d-dextrade-prices-in-one-query/135):
>
> looking to get Last, 24h, 7d, prices for a contract in a single query. I’d love to not request a full week’s worth of trades to get it. I can see how to get Last and 7d in a single query (minimum, maximum) but the 24h one is tripping me up is it possible? here is what I have so far: { ethereum(network: ethereum) { dexTrades( options: { desc: ["trades"], limit: 2, limitBy: { each: "sellCurrency.address", limit: 1 }, offset: 0 }, date: { since…

Market cap

> [@MarketCap of a Token](https://community.bitquery.io/t/marketcap-of-a-token/117):
>
> Let’s say if you want the Marketcap of a Binance Smart Chain token (BSC token) or Etheruem token or any other chain token. Here are the steps 1- Get total Supply 2- Getting Latest Price Getting the Total supply of a token To get the total supply, you can use our Address APIs to get the smart contract attributes. For example check the following query { ethereum { address(address: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}) { annotation address smartContract …

Liquidity

> [@Pancakeswap Liquidity, Price, ATH and ATL](https://community.bitquery.io/t/pancakeswap-liquidity-price-ath-and-atl/24/3):
>
> Thank you Gaurav very much for your reply. The liquidity is the money in the pair. Here is an open API call with a list of Pancakeswap top 1000 pairs by liquidity: [https://api.pancakeswap.info/api/pairs](https://api.pancakeswap.info/api/pairs) Now, how would you go about requesting that info for all 1000 tokens? Could it be done all at once, like adding them to a pool and making a request for all?

---

_[View the full topic](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236)._
