4) Get All Stablecoin Pairs For Dex
Returns 10 DEX trades on Ethereum and klaytn, where exchange address is 0xf510…312e, quote currency is 0xceE8…D167 and time after 12/01/2022, sorted by time interval second: second, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.
What it returns
- second
- base currency symbol
- base currency address
- base amount
- quote currency symbol
- quote currency address
- quote amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- exchange address is 0xf510…312e
- quote currency is 0xceE8…D167
- time after 12/01/2022
- trade amount USD is above 1
The query
query GetAllStablecoinPairsCreatedForDex($network: EthereumNetwork!, $from: ISO8601DateTime, $limit: Int!, $factoryAddress: String!, $stablecoinAddress: String!, $tradeAmountUsd: Float!) {
ethereum(network: $network) {
dexTrades(
options: {asc: "timeInterval.second", limit: $limit}
time: {after: $from }
exchangeAddress: {is: $factoryAddress}
quoteCurrency: {is: $stablecoinAddress}
tradeAmountUsd: {gt: $tradeAmountUsd}
) {
timeInterval {
second(count: 60)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
quotePrice
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
volume: quoteAmount
count: count
}
}
}
Variables
{
"network": "klaytn",
"from": "12/01/2022",
"limit": 10,
"factoryAddress": "0xf51082ba95c18315ca51a1ab8d9db537ff52312e",
"stablecoinAddress": "0xceE8FAF64bB97a73bb51E115Aa89C17FfA8dD167",
"tradeAmountUsd": 1
}
Similar queries
- Klaytn — Top DEXs by trade count · Klaytn · DEXTrades
- Klaytn — Latest DEX trades · Klaytn · DEXTrades
- 1) Get Top Dex Factorys For Network · Klaytn · DEXTrades
- 3) Get Router Address From Factory And Base Token · Klaytn · DEXTrades
- Swap Scanner · Klaytn · DEXTrades