Example Queries
Copy-paste queries for common agent use cases
Example queries
Find new low-risk tokens with decent liquidity
graphql{ newTokens( maxAgeSeconds: 7200 minLiquidityUsd: 50000 limit: 10 ) { tokens { address symbol deployedAt price { usd change1h } largestPool { dex liquidityUsd volumeUsd24h } liquidity { usd } risk { score isHoneypot isMintable liquidityLocked top10HolderPct } } } }
Get trending tokens in the last hour
graphql{ trending(period: H1, limit: 20) { tokens { address symbol price { usd change1h } volume { usd24h txCount24h } } } }
Look up a specific token
graphql{ token(address: "0x532f27101965dd16442e59d40670faf5ebb142e4") { symbol name price { usd change24h change7d } largestPool { dex liquidityUsd volumeUsd24h } liquidity { usd } volume { usd24h buys24h sells24h } risk { score isHoneypot isVerified liquidityLocked } holders { count top10Pct } } }
Top gainers in the last 24 hours
graphql{ movers(period: H24, direction: UP, limit: 10) { tokens { address symbol price { usd change24h } liquidity { usd } } } }
Screen tokens for a trading agent
This query gets new tokens, which you filter client-side by risk:
graphql{ newTokens( maxAgeSeconds: 3600 minLiquidityUsd: 25000 limit: 50 ) { tokens { address symbol price { usd change1h } risk { score isHoneypot isMintable } } hasMore } }
Filter in your agent:
typescriptconst safe = data.newTokens.tokens.filter(t => t.risk.score < 40 && !t.risk.isHoneypot && !t.risk.isMintable )
Search for a token by name
graphql{ search(query: "TOSHI", limit: 5) { address symbol name price { usd } } }
Get all trading pairs for a token
graphql{ pairs(tokenAddress: "0x532f27101965dd16442e59d40670faf5ebb142e4", limit: 10) { address dex token0 token1 feeTier createdAt } }