opsin realtime ohlc
Streams DEX trades by token on Ethereum as they happen, where side currency smart contract is 0x8ea7…fc74 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 0x8ea7…fc74
- trade price asymmetry is below 0.1
The subscription
subscription getTokensTrades($network: evm_network!, $sideCurrencies: [String!]) {
EVM(network: $network) {
DEXTradeByTokens(
where: {Trade: {Success: true, Side: {Currency: {SmartContract: {in: $sideCurrencies}}}, PriceAsymmetry: {lt: 0.1}}}
) {
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)
}
}
}
}
Variables
{
"network": "eth",
"sideCurrencies": [
"0x8ea7c91d8af99cfb92327c333a5edd2cc26cfc74"
]
}
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