BSC Uniswap API
This section provides you with a set of queries that provides an insight about the Uniswap DEX on BSC.
Live Uniswap v3 Trades on BSC (Trading API — recommended)
This subscription streams every Uniswap v3 trade on BSC in real time with USD price and USD amounts on every row, MEV-filtered. Run it in the IDE.
subscription {
Trading {
Trades(
where: {Pair: {Market: {Network: {is: "Binance Smart Chain"}, Protocol: {is: "uniswap_v3"}}}}
) {
Block { Time }
Price
PriceInUsd
AmountsInUsd { Base Quote }
Trader { Address }
Pair { Token { Symbol } QuoteToken { Symbol } Market { Protocol } }
}
}
}
Get Latest Trades on Uniswap v3
Below query will subscribe you to the latest DEX Trades on BSC Uniswap v3. Try out the API here
query MyQuery {
EVM(dataset: realtime, network: bsc) {
DEXTrades(
where: {Trade: {Dex: {ProtocolName: {is: "uniswap_v3"}}}}
limit: {count: 10}
orderBy:{descending:Block_Time}
) {
Transaction {
From
To
}
Trade {
Dex {
ProtocolName
SmartContract
}
Buy {
Currency {
Name
}
Price
Amount
}
Sell {
Amount
Currency {
Name
}
Price
}
}
Block {
Time
}
}
}
}