# 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:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anil](https://community.bitquery.io/u/anil)\
**Post date:** [June 26, 2021, 7:46am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/1 "2021-06-26T07:46:09Z")

</div>

by using a single query Is that possible by contract address can we get a complete details of that contract address means ex: symbol, image, USD price, 24h change in percentage, 24h volume, market cap, liquidity and etc…

---

<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?

---

<div class="post-metadata">

**Author:** ![anil](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anil](https://community.bitquery.io/u/anil)\
**Post date:** [June 27, 2021, 8:02am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/3 "2021-06-27T08:02:24Z")

</div>

hey Gaurav is that possible to write single query to get all these details symbol, image, USD price, 24h change in percentage, 24h volume, market cap, liquidity because if we write a single single query’s and API then you may also know that’s effect on performance, please tell me if it is possible else give me another solution

---

<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 28, 2021, 7:12am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/4 "2021-06-28T07:12:17Z")

</div>

Make this using alias

> **[basic details of a token.. balance,, price change .. volume etc](https://graphql.bitquery.io/ide/Md0WFhGdMh)**
>
> Bitquery is analytical engine for blockchains

---

<div class="post-metadata">

**Author:** ![anil](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anil](https://community.bitquery.io/u/anil)\
**Post date:** [July 1, 2021, 9:37am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/5 "2021-07-01T09:37:30Z")

</div>

thank you gaurav , I need USD price, 24h change in percentage, 24h volume, market cap, liquidity these data in “bsc network” and whatever you given query not working for some tokens ex: “0xb63a911ae7dc40510e7bb552b7fcb94c198bbe2d” for this token did’t get a total supply why?

---

<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:** [July 1, 2021, 11:42am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/6 "2021-07-01T11:42:54Z")

</div>

> [@anil](#):
>
> 0xb63a911ae7dc40510e7bb552b7fcb94c198bbe2d

Yes… we don’t have supply for all, we have notified Devs about it.

---

<div class="post-metadata">

**Author:** ![anil](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anil](https://community.bitquery.io/u/anil)\
**Post date:** [July 2, 2021, 9:57am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/7 "2021-07-02T09:57:55Z")

</div>

Ok thank for your support

---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [July 9, 2021, 7:01am UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/8 "2021-07-09T07:01:30Z")

</div>



---

<div class="post-metadata">

**Author:** ![sayon](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@sayon](https://community.bitquery.io/u/sayon)\
**Post date:** [July 17, 2021, 3:35pm UTC](https://community.bitquery.io/t/get-contract-address-all-data-using-single-query/236/9 "2021-07-17T15:35:44Z")

</div>


