bsc_price_get
Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0x0e09…ce82 and quote currency is 0x55d3…7955, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, transaction hash, base currency symbol, base currency address, quote currency symbol and 4 more fields.
What it returns
- block height
- timestamp time
- transaction index
- transaction hash
- base currency symbol
- base currency address
- quote currency symbol
- quote currency address
- quote price
- base amount
- quote amount
Filters
- base currency is 0x0e09…ce82
- quote currency is 0x55d3…7955
The query
query ($baseAddress: String, $quoteAddress: String){
ethereum(network: bsc) {
dexTrades(
baseCurrency: {is: $baseAddress}
quoteCurrency: {is: $quoteAddress}
options: {desc: ["block.height", "transaction.index"], limit: 1}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
index
hash
}
baseCurrency {
symbol
address
}
quoteCurrency {
symbol
address
}
quotePrice
buyAmount: baseAmount
volume: quoteAmount
}
}
}
Variables
{
"baseAddress": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
"quoteAddress": "0x55d398326f99059ff775485246999027b3197955"
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades