PEPE Coin API
Query real-time and historical on-chain data for PEPE, a popular ERC-20 memecoin on Ethereum. All examples below target PEPE's contract address: 0x6982508145454ce325ddbe47a25d4ec3d2311933.
Real Time PEPE Trades Stream
Every PEPE DEX trade as it is confirmed on-chain in real time using Bitquery subscription.
subscription {
EVM(network: eth) {
DEXTradeByTokens(
where: {
Trade: {
Currency: {
SmartContract: { is: "0x6982508145454ce325ddbe47a25d4ec3d2311933" }
}
}
}
) {
Block {
Time
Number
}
Transaction {
Hash
}
Trade {
AmountInUSD
Price
Side {
Type
AmountInUSD
Currency { Symbol }
}
Buyer
Seller
Dex {
ProtocolName
SmartContract
}
Currency { Symbol }
}
}
}
}
Real Time PEPE OHLCV Stream
Stream live PEPE price data with 1-minute candles, moving averages, and USD volume.
Note:
Volume: { Usd: { gt: 5 } }is included to filter outlier ticks; the stream already pre-filters outliers—this is an additional check.
subscription {
Trading {
Tokens(
where: {
Token: {
Address: { is: "0x6982508145454ce325ddbe47a25d4ec3d2311933" }
}
Interval: { Time: { Duration: { eq: 60 } } }
Volume: { Usd: { gt: 5 } }
}
) {
Token {
Symbol
Name
Network
Address
}
Block {
Time
Timestamp
}
Interval {
Time {
Start
Duration
End
}
}
Price {
IsQuotedInUsd
Ohlc {
Open
High
Low
Close
}
Average {
Mean
SimpleMoving
WeightedSimpleMoving
ExponentialMoving
}
}
}
}
}
Historical PEPE OHLCV (Last 30 Days)
Fetch hourly OHLCV candles for the past 30 days. Change Duration for different intervals, such as 60 (1 minute) or 300 (5 minutes).
{
Trading {
Tokens(
where: {
Token: {
Address: { is: "0x6982508145454ce325ddbe47a25d4ec3d2311933" }
}
Interval: { Time: { Duration: { eq: 3600 } } }
Volume: { Usd: { gt: 5 } }
Block: { Time: { since_relative: { days_ago: 30 } } }
}
limit: { count: 1000 }
orderBy: { descending: Interval_Time_Start }
) {
Interval {
Time {
Start
End
Duration
}
}
Price {
IsQuotedInUsd
Ohlc {
Open
High
Low
Close
}
Average {
Mean
ExponentialMoving
SimpleMoving
}
}
Volume {
Usd
}
}
}
}
Monitor Whale Activities for PEPE in Real Time
Subscribe to PEPE transfers above 1 billion tokens the moment they hit the chain.
subscription {
EVM(network: eth) {
Transfers(
where: {
Transfer: {
Currency: {
SmartContract: { is: "0x6982508145454ce325ddbe47a25d4ec3d2311933" }
}
Amount: { ge: "1000000000000" }
}
}
) {
Block {
Time
Number
}
Transaction {
Hash
}
Transfer {
Amount
AmountInUSD
Sender
Receiver
Currency {
Symbol
}
}
}
}
}
Latest Trading Volume and Market Cap for PEPE
This query provides the latest trade volume for the past one hour along with the latest market cap.
{
Trading {
Tokens(
where: {
Token: {
Address: { is: "0x6982508145454ce325ddbe47a25d4ec3d2311933" }
}
Interval: { Time: { Duration: { eq: 3600 } } }
}
orderBy: {descending: Interval_Time_End}
limit: {count: 1}
) {
Interval{
Time{
Start
End
}
}
Price {
Ohlc { Close }
}
Volume {
Usd
Base
Quote
}
Supply {
TotalSupply
MarketCap
FullyDilutedValuationUsd
}
}
}
}
PEPE Volume by DEX (Last 24 Hours)
Break down PEPE trading volume across all DEXs.
{
EVM(network: eth) {
DEXTradeByTokens(
where: {
Trade: {
Currency: {
SmartContract: { is: "0x6982508145454ce325ddbe47a25d4ec3d2311933" }
}
}
Block: { Time: { since_relative: { hours_ago: 24 } } }
}
orderBy: { descendingByField: "volumeUsd" }
) {
Trade {
Dex {
ProtocolName
ProtocolFamily
SmartContract
}
}
volumeUsd: sum(of: Trade_AmountInUSD)
tradeCount: count(of: Transaction_Hash)
}
}
}
Historical Daily Volume for 30 Days
The below query returns the daily trading volume for the past 30 days.
query MyQuery {
Trading {
Trades(
where: {
Block: {Time: {since_relative: {days_ago: 30}}},
Pair: {Token: {Address: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}}}
}
orderBy: {ascending: Block_Date}
) {
Block{ Date }
volume: sum(of: AmountsInUsd_Base)
trades: count
traders: uniq(of: Trader_Address)
}
}
}
Top PEPE Buyers for Last 24 Hours
Rank wallets by total USD spent buying PEPE.
query MyQuery {
Trading {
Trades(
where: {
Block: {Time: {since_relative: {hours_ago: 24}}},
Pair: {Token: {Address: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}}},
Side: {is: "Buy"}
}
limit: {count: 20}
orderBy: {descendingByField: "volume"}
) {
Trader {
Address
}
volume: sum(of: AmountsInUsd_Base)
trades: count
}
}
}
Top PEPE Sellers for Last 24 Hours
Rank wallets by total USD value of PEPE sold.
query MyQuery {
Trading {
Trades(
where: {
Block: {Time: {since_relative: {hours_ago: 24}}},
Pair: {Token: {Address: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}}},
Side: {is: "Sell"}
}
limit: {count: 20}
orderBy: {descendingByField: "volume"}
) {
Trader {
Address
}
volume: sum(of: AmountsInUsd_Base)
trades: count
}
}
}
PEPE Top Holders by Balance
query MyQuery {
Trading {
Trades(
where: {
Pair: {Token: {Address: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}}},
}
limit: {count: 20}
orderBy: {descendingByField: "holdings"}
) {
Trader {
Address
}
buy_volume: sum(of: AmountsInUsd_Base if: {Side: {is: "Buy"}})
sell_volume: sum(of: AmountsInUsd_Base if: {Side: {is: "Sell"}})
holdings: calculate(expression: "$buy_volume - $sell_volume")
trades: count
}
}
}