Hello there,
I am getting very inconsistent price data for different tokens on BSC.
As I understand, poocoin.app is using BitQuery as a backend, and I can see full candles at different resolutions there, including 60min for e.g. TIGER (0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04) from at least 21st May, whereas from the BitQuery API I only get 20 60min candles if I filter from 1st Dec 2020 until 24th May 2021.
This is one example of many coins that I cannot get full data for.
Why is this? Is it because I’m on the “developer” free tier? Would I get full access to all data on a paid account?
Here is the query I am sending, which is exactly the same one that poocoin.app uses (copied from the API calls that their frontend makes):
{
“query”: “query GetCandleData(\n $baseCurrency: String!,\n $since: ISO8601DateTime,\n $till: ISO8601DateTime,\n $quoteCurrency: String!,\n $exchangeAddresses: [String!]\n $minTrade: Float\n $window: Int) {\n ethereum(network: bsc) {\n dexTrades(\n options: {asc: “timeInterval.minute”}\n date: {since: $since, till: $till}\n exchangeAddress: {in: $exchangeAddresses}\n baseCurrency: {is: $baseCurrency}\n quoteCurrency: {is: $quoteCurrency} # WBNB\n tradeAmountUsd: {gt: $minTrade}\n ) {\n timeInterval {\n minute(count: $window, format: “%Y-%m-%dT%H:%M:%SZ”)\n }\n baseCurrency {\n symbol\n address\n }\n quoteCurrency {\n symbol\n address\n }\n\n tradeAmount(in: USD)\n trades: count\n quotePrice\n maximum_price: quotePrice(calculate: maximum)\n minimum_price: quotePrice(calculate: minimum)\n open_price: minimum(of: block, get: quote_price)\n close_price: maximum(of: block, get: quote_price)\n }\n }\n}\n”,
“variables”: {
“baseCurrency”: “0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04”,
“quoteCurrency”: “0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c”,
“since”: “2020-12-01T00:00:00.000Z”,
“till”: “2021-05-24T17:00:00.000Z”,
“window”: 60,
“exchangeAddresses”: [
“0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73”
]
}
}