https://bitquery.zendesk.com/agent/tickets/680
Returns one DEX trade on Ethereum and Polygon, where maker or taker is 0xdf92…ac78 and time since 2021-10-01, sorted by trade index block height, highest first: trade index, block height, iso8601, trade amount and count.
What it returns
- trade index
- block height
- iso8601
- trade amount
- count
Filters
- maker or taker is 0xdf92…ac78
- time since 2021-10-01
The query
{
ethereum(network: matic) {
dexTrades(
# smartContractAddress: {is: "0xdf921b839c26671335ea70bc52cc9750613bac78"}
makerOrTaker: {in: ["0xdf921b839c26671335ea70bc52cc9750613bac78"]}
time: {since: "2021-10-01"}
options: {limit: 1, desc: ["tradeIndex", "block.height"]}
) {
# timeInterval {
# day(count: 1)
# }
tradeIndex
block{
height
timestamp{
iso8601
}
}
tradeAmount(in: USD)
trades: count,
}
}
}
Similar queries
- trades · Ethereum · DEXTrades
- matic_DEXTrades · Polygon · DEXTrades
- prediction_dextrades · Polygon · DEXTrades
- matic MAPU trades · Polygon · DEXTrades
- List of DEX supported · Polygon · DEXTrades