DEX prices
Returns the latest DEX trade on Base, where pair smart contract is 0x62cb…9d6f: buy currency symbol, buy fungible, buy currency name, buy smart contract, buy decimals, buy price, sell currency symbol and 7 more fields.
What it returns
- buy currency symbol
- buy fungible
- buy currency name
- buy smart contract
- buy decimals
- buy price
- sell currency symbol
- sell fungible
- sell currency name
- sell smart contract
- sell decimals
- block date
- block number
- transaction hash
Filters
- pair smart contract is 0x62cb…9d6f
The query
query dexPrices($contract: String!) {
EVM(network: base, dataset: archive) {
DEXTrades(
orderBy: {descending: Block_Time}
where: {Trade: {Dex: {Pair: {SmartContract: {is: $contract}}}}, TransactionStatus: {Success: true}}
limit: {count: 1}
) {
Trade {
Buy {
Currency {
Symbol
Fungible
Name
SmartContract
Decimals
}
Price_against_sell_currency: Price
}
Sell {
Currency {
Symbol
Fungible
Name
SmartContract
Decimals
}
}
}
Block {
Date
Number
}
Transaction {
Hash
}
}
}
}
Variables
{
"contract":"0x62cb793eaf50d06704e2c88f5fe04fe60c889d6f",
"block": "15299741"
}
Similar queries
- Zora Trades For A Wallet Up To A Block · Base · DEXTrades
- dex_trade_by_tx_base · Base · DEXTrades
- base dextrades · Base · DEXTrades
- trades · Ethereum · DEXTrades
- base_aerodrome_slipstream · Base · DEXTrades