Development Talk base query
Streams DEX trades by token on Base as they happen, where currency smart contract is 0xB5d4…Eb7c and side type is sell: block time, block number, trade amount, currency symbol, smart contract, currency name, price in USD and 16 more fields.
What it returns
- block time
- block number
- trade amount
- currency symbol
- smart contract
- currency name
- price in USD
- protocol name
- side amount
- side amount in USD
- side currency symbol
- side smart contract
- side buyer
- side seller
- side type
- buyer
- seller
- amount in USD
- from
- transaction hash
- transaction type
- to
- success
Filters
- currency smart contract is 0xB5d4…Eb7c
- side type is sell
The subscription
subscription {
buybot_base: EVM(network: base) {
DEXTradeByTokens(
where: {TransactionStatus: {Success: true}, Trade: {Currency: {SmartContract: {in: ["0xB5d409F6E679B0f89A669ac9714173177683Eb7c"]}}, Side: {Type: {is: sell}}}}
) {
Block {
Time
Number
}
Trade {
Amount
Currency {
Symbol
SmartContract
Name
}
PriceInUSD
Dex {
ProtocolName
SmartContract
}
Side {
Amount
AmountInUSD
Currency {
Symbol
SmartContract
}
Buyer
Seller
Type
}
Buyer
Seller
AmountInUSD
}
Transaction {
Maker: From
Hash
Type
To
}
TransactionStatus {
Success
}
}
}
}
Similar queries
- base DexTradeByTokens · Base · DEXTradeByTokens
- BASE ALL BUY · Base · DEXTradeByTokens
- new Base stream · Base · DEXTradeByTokens
- base all dextrades · Base · DEXTradeByTokens
- base dextrades for a particular token · Base · DEXTradeByTokens