Dex price
Returns the latest DEX trade on Ethereum, where pair smart contract is 0x0d4a…1852 and block number is at most 15883015: buy currency symbol, buy smart contract, buy fungible, buy decimals, buy currency name, buy price, buy price in USD and 11 more fields.
What it returns
- buy currency symbol
- buy smart contract
- buy fungible
- buy decimals
- buy currency name
- buy price
- buy price in USD
- sell currency symbol
- sell smart contract
- sell fungible
- sell decimals
- sell currency name
- sell price
- sell price in USD
- block date
- block number
- block time
- transaction hash
Filters
- pair smart contract is 0x0d4a…1852
- block number is at most 15883015
The query
query ($network: evm_network, $blockNumber: String!, $contract: String!) {
EVM(network: $network, dataset: archive) {
DEXTrades(
orderBy: {descending: Block_Time}
where: {Trade: {Dex: {Pair: {SmartContract: {is: $contract}}}}, TransactionStatus: {Success: true}, Block: {Number: {le: $blockNumber}}}
limit: {count: 1}
) {
Trade {
Buy {
Currency {
Symbol
SmartContract
Fungible
Decimals
Name
}
Price_against_sell_currency: Price
Price_usd: PriceInUSD
}
Sell {
Currency {
Symbol
SmartContract
Fungible
Decimals
Name
}
Price_against_buy_currency: Price
Price_usd: PriceInUSD
}
}
Block {
Date
Number
Time
}
Transaction {
Hash
}
}
}
}
Variables
{
"blockNumber":"15883015",
"contract":"0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852",
"network":"eth"
}
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