Skip to Content
Use Cases

Common Use Cases

Use this page when you already know the job to be done, but do not yet know which AgentQL surface should own it.

Each section maps one common integration scenario to the best surface and starting page.

1. Show the latest token price in a web app

GET /v1/market/price-snapshot?market_kind=dex&chain=ethereum&address=0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2

2. Ask an agent for token price or market context

3. Build a live price board

{ "action": "subscribe", "targets": [ { "market_kind": "dex", "target_id": "0xC02aaA39b223FE8D0A0E5C4F27eAD9083C756Cc2", "chain": "ethereum", "event_family": "price" } ] }

4. Render short-range OHLCV charts

  • Best surfaces: Get OHLCV window for request-response reads, OHLCV streams for live updates
  • Why: recent candles for charts, watchlists, or summaries.

5. Enrich a token with identity and metadata

  • Best surfaces: Get asset profile
  • Why: name, symbol, decimals, and asset identity before showing market data.

6. Check market context before actioning a market

  • Best surfaces: Get market profile
  • Why: market context before alerts, rankings, or execution decisions.

7. Build price alerts or threshold watchers

8. Watch EVM heads, logs, or pending transactions

9. Send direct EVM JSON-RPC methods

{ "jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": [] }

10. Verify the current public endpoint baseline

  • Best surface: Public Status API
  • Why: one backend-owned view of published endpoints.

11. Start from a typed client in a TypeScript app

  • Best surface: Typescript-SDK
  • Why: shared auth wiring, endpoint setup, and typed helpers.

12. Decide whether to use Market API or EVM RPC

  • Use Market API when the job is price, OHLCV, asset profile, or market profile.
  • Use EVM RPC when the job is native chain access, direct JSON-RPC methods, or chain subscription topics.
  • Use Market WebSocket when the job is product-level realtime market delivery.

13. Diagnose failed requests

14. Review Solana compatibility coverage

  • Best surface: Solana (Beta)
  • Why: review the current beta method and subscription coverage.

If you are still deciding where to start, open Getting Started for task-first onboarding or Services for the full service-family directory.

Last updated on