AthPriceFinder
Returns one DEX trade on Ethereum, where buy currency is 0x2260…c599, sell currency is 0xdac1…1ec7 or 0xa0b8…eb48 and date since 2018-11-24, sorted by price in USD, highest first: block height, day, transaction hash, buy amount and expression.
What it returns
- block height
- day
- transaction hash
- buy amount
- expression
Filters
- buy currency is 0x2260…c599
- sell currency is 0xdac1…1ec7 or 0xa0b8…eb48
- date since 2018-11-24
The query
query TokenMaxPriceInUSD{
ethereum(network: ethereum) {
dexTrades(
options: {desc: "priceInUsd", limit: 1} ## desc in priceUsd because we can set limit as 1 and the points and data consumed will be much lesser
buyCurrency: {is: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"} ##bitcoin address
sellCurrency: {in: ["0xdac17f958d2ee523a2206206994597c13d831ec7" , "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]} ## sell currency - USDT
date: {since: "2018-11-24"} ## query Token deployement date gives us the contract creation date of our token
) {
block {
height ## Height - blockNumber at which the highest price was recorded.
}
timeInterval {
day ##Day at which the highest price was achieved
}
transaction {
hash
}
buyAmount
buy_amount_usd: buyAmount(in: USD)
priceInUsd: expression(get: "buy_amount_usd/buyAmount")
}
}
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades