Bsc Trades for specific time
Returns the latest 4 DEX trades on Ethereum and Polygon, where base currency is 0x7A5d…b4DF, time since 2021-06-03 and time till 2021-06-03: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.
What it returns
- timestamp time
- block height
- trade index
- protocol
- full name
- address address
- annotation
- buy amount
- buy currency address
- buy currency symbol
- sell amount
- sell currency address
- sell currency symbol
- transaction hash
- expression
Filters
- base currency is 0x7A5d…b4DF
- time since 2021-06-03
- time till 2021-06-03
The query
{
ethereum(network: matic) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: 4, offset: 0}
time: {since: "2021-06-03T12:00:00", till: "2021-06-03T12:59:59"}
any: {baseCurrency: {is: "0x7A5dc8A09c831251026302C93A778748dd48b4DF"}}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
buyAmount
buyCurrency {
address
symbol
}
buy_amount_usd: buyAmount(in: USD)
sellAmount
sellCurrency {
address
symbol
}
sell_amount_usd: sellAmount(in: USD)
transaction {
hash
}
PriceInUSD1: expression(get: "buy_amount_usd / buyAmount")
PriceInUSD2: expression(get: "sell_amount_usd / buyAmount")
}
}
}
Similar queries
- trades · Ethereum · DEXTrades
- matic_DEXTrades · Polygon · DEXTrades
- prediction_dextrades · Polygon · DEXTrades
- matic MAPU trades · Polygon · DEXTrades
- List of DEX supported · Polygon · DEXTrades