Alex
July 29, 2021, 3:10pm
1
Hello!
Please help me to compose the code: Get a list of the latest pairs from Pancakeswap.
Filter:
a) a pair based on WBNB (for example: WBNB/PSWAP or PSWAP/WBNB if the order matters)
b) pair created from the last 2 to 9 days
c) daily volume (not liquid) more than 10k
d) last activity of buy/sell: less than 5 minutes (if possible)
Sort by daily volume.
Thank you
sayon
July 29, 2021, 4:02pm
2
Hi @Alex sorry for the delay. This query fulfill the above requirements
Alex
July 29, 2021, 4:14pm
3
Thank you, Sayon.
Something is wrong with the result. Only BUSD/WBNB pair is displayed with a different number of trading volumes.
I need A NEW pairs created in last 2 to 9 days, not top pairs like BUSD/WBNB
Alex
November 8, 2021, 7:16am
5
“message”: "ActiveRecord::ActiveRecordError: Response code: 500:\nCode: 160, e.displayText() = DB::Exception: Estimated query execution time (47.54567749630479 seconds) is too long. Maximum: 15.
gaurav
November 15, 2021, 5:24am
6
I added date filter to reduce the data API trying to query.
{
ethereum(network: bsc) {
arguments(
smartContractAddress: {is: "0xBCfCcbde45cE874adCB698cC183deBcF17952812"}
smartContractEvent: {is: "PairCreated"}
argument: {not: "pair"}
date: {after: "2021-11-01"}
options: {desc: "block.height", limit: 100}
) {
block {
height
timestamp {
unixtime
}
}
argument {
name
type
}
reference {
address
smartContract {
currency {
name
}
}
}
}
}
}
max
November 22, 2021, 2:06pm
8
I fetched thousands of latest tokens, but when I see latest coinmarketcap token I can’t find single token in what bitquery returned, why’s that ?
It would be great if you could help me on this.
@gaurav
gaurav
November 23, 2021, 4:06pm
9
Because DEXs have a lot more shitcoins.
max
November 25, 2021, 10:19am
10
okay got you
but why the tokens are missing, I mean are you skipping them ?
gaurav
November 29, 2021, 1:07pm
11
which token we skip… can you tell me an example?
Give me its address.