opsin ohlc realtime hardcoded
Streams DEX trades by token on Ethereum as they happen, where side currency smart contract is 0xc02a…6cc2, currency smart contract is 0xa0b8…eb48 and trade price asymmetry is below 0.1: block time, block number, transaction hash, from, trade index, buyer, seller and 19 more fields.
What it returns
- block time
- block number
- transaction hash
- from
- trade index
- buyer
- seller
- trade amount
- amount in USD
- price in USD
- currency symbol
- smart contract
- currency name
- decimals
- side type
- side currency symbol
- side smart contract
- side currency name
- side decimals
- side amount in USD
- side amount
- protocol family
- protocol name
- delegated
- delegated to
- trade price
Filters
- side currency smart contract is 0xc02a…6cc2
- currency smart contract is 0xa0b8…eb48
- trade price asymmetry is below 0.1
The subscription
subscription {
EVM(network: eth) {
DEXTradeByTokens(
where: {
Trade: {
Success: true,
Side: {
Currency: {
SmartContract: {
in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]
}
}
},
PriceAsymmetry: { lt: 0.1 },
Currency: {
SmartContract: {
is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}
}
}
}
) {
Block {
Time
Number
}
Transaction {
Hash
From
}
Trade {
Index
Buyer
Seller
Amount
AmountInUSD
PriceInUSD
Currency {
Symbol
SmartContract
Name
Decimals
}
Side {
Type
Currency {
Symbol
SmartContract
Name
Decimals
}
AmountInUSD
Amount
}
Dex {
ProtocolFamily
ProtocolName
Delegated
DelegatedTo
}
high: Price(maximum: Trade_Price)
low: Price(minimum: Trade_Price)
open: Price(minimum: Block_Number)
close: Price(maximum: Block_Number)
}
}
}
}
Similar queries
- Stablecoin Depeg tracking Stream for evm · Ethereum · DEXTradeByTokens
- realtime trades EVM -subscription · Ethereum · DEXTradeByTokens
- EVM chain currency details stream · Ethereum · DEXTradeByTokens
- Real time price stream for tokens on Ethereum · Ethereum · DEXTradeByTokens
- Top Bought/Sold/Trending/Volatility Tokens on Eth · Ethereum · DEXTradeByTokens