get price at specific time
Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0x55d3…7955 and time since 2022-05-23: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.
What it returns
- timestamp time
- block height
- trade index
- protocol
- full name
- address address
- annotation
- base amount
- base currency address
- base currency symbol
- quote amount
- quote currency address
- quote currency symbol
- transaction hash
Filters
- base currency is 0xbb4c…095c
- quote currency is 0x55d3…7955
- time since 2022-05-23
- time till 2022-08-23
The query
query ($network: EthereumNetwork!, $token: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
ethereum(network: $network) {
dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
time: {since: $from, till: $till}
baseCurrency: {is: $token}
quoteCurrency: {is: "0x55d398326f99059ff775485246999027b3197955"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
tradeIndex
protocol
exchange {
fullName
}
smartContract {
address {
address
annotation
}
}
baseAmount
baseCurrency {
address
symbol
}
base_amount_usd: baseAmount(in: USD)
quoteAmount
quoteCurrency {
address
symbol
}
quote_amount_usd: quoteAmount(in: USD)
transaction {
hash
}
}
}
}
Variables
{
"limit": 1,
"offset": 0,
"network": "bsc",
"token": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
"from": "2022-05-23T21:59:59",
"till": "2022-08-23T22:59:59",
"dateFormat": "%Y-%m-%d"
}
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