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: $connector1}},
{
baseCurrency: {is: $connector1}
quoteCurrency: {is: $quoteAddress}}
]
date: {since: $from}
tradeAmountUsd: {gt: 10}
){
timeInterval {
minute(format: “%FT%TZ”, count: $interval)
}
buyCurrency: baseCurrency {
symbol
address
}
buyAmount: baseAmount
buyAmountInUsd: baseAmount
sellCurrency: quoteCurrency {
symbol
address
}
sellAmountInUsd: quoteAmount
tradeAmount(in: USD)
volume: quoteAmount
trades: count
averageQuotePrice: quotePrice(calculate: average)
}}
}
This is the query variable I used.
{“from”: “2021-02-25T18:05:00.000Z”,“interval”: 30,“baseAddress”:“0xb6d053e260d410eac02ea28755696f90a8ecca2b”,“quoteAddress”:“0x55d398326f99059ff775485246999027b3197955”,“connector1”:“0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c”,“minAmount”: 1000}
And here’s one item of the result array.
{
“timeInterval”: {
“minute”: “2021-02-25T00:00:00Z”
},
“buyCurrency”: {
“symbol”: “WBNB”,
“address”: “0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c”
},
“buyAmount”: 5317.599217978192,
“buyAmountInUsd”: 5317.599217978192,
“sellCurrency”: {
“symbol”: “USDT”,
“address”: “0x55d398326f99059ff775485246999027b3197955”
},
“sellAmountInUsd”: 1354400.9408832863,
“tradeAmount”: 1312590.8162438706,
“volume”: 1354400.9408832863,
“trades”: 588,
“averageQuotePrice”: 254.51960368421868
},
As you can see, there’s no information about my token in the result. Only about the WBNB/USDT pair.
Would you kindly let me know what I did wrong here?
I’d really appreciate it.