What is the DexPaprika CLI?
A fast, standalone command-line tool for querying on-chain DEX data. Written in Rust. Covers the entire DexPaprika API — token prices, pools, OHLCV, transactions, search, pool filtering, and real-time price streaming via SSE. No API key. No dependencies. One binary. Source: github.com/coinpaprika/dexpaprika-cliInstall
One-line install (macOS, Linux)
~/.local/bin. You can override the install path:
Download from GitHub
Pre-built binaries for every platform are on the releases page:| Platform | Binary |
|---|---|
| macOS (Apple Silicon) | dexpaprika-cli-{version}-darwin-aarch64.tar.gz |
| macOS (Intel) | dexpaprika-cli-{version}-darwin-x86_64.tar.gz |
| Linux (x86_64) | dexpaprika-cli-{version}-linux-x86_64.tar.gz |
| Linux (ARM64) | dexpaprika-cli-{version}-linux-aarch64.tar.gz |
| Windows (x86_64) | dexpaprika-cli-{version}-windows-x86_64.zip |
Build from source
Requires Rust:Verify installation
Commands
Every DexPaprika REST API endpoint has a matching CLI command:| Command | What it does | Example |
|---|---|---|
stats | Ecosystem overview (total networks, pools, tokens) | dexpaprika-cli stats |
networks | List all supported chains | dexpaprika-cli networks |
dexes | DEXes on a network | dexpaprika-cli dexes ethereum |
pools | Top pools on a network | dexpaprika-cli pools ethereum --limit 5 |
pool | Single pool details | dexpaprika-cli pool ethereum 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640 |
dex-pools | Pools on a specific DEX | dexpaprika-cli dex-pools ethereum uniswap_v3 |
transactions | Recent swaps for a pool | dexpaprika-cli transactions ethereum 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640 |
pool-ohlcv | Historical OHLCV candles | dexpaprika-cli pool-ohlcv ethereum 0x88e6... --start 2025-01-01 |
token | Token price and details | dexpaprika-cli token ethereum 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 |
token-pools | All pools containing a token | dexpaprika-cli token-pools ethereum 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 |
prices | Batch token prices (up to 10) | dexpaprika-cli prices ethereum --tokens 0xc02a...,0xdac1... |
search | Search tokens, pools, DEXes | dexpaprika-cli search uniswap |
stream | Real-time SSE price stream | dexpaprika-cli stream ethereum 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 |
status | API health check | dexpaprika-cli status |
attribution | License attribution snippets | dexpaprika-cli attribution |
onboard | Quick start walkthrough | dexpaprika-cli onboard |
shell | Interactive REPL mode | dexpaprika-cli shell |
Output formats
The CLI outputs tables by default. Switch to JSON for scripting and piping:jq for filtering:
Examples
Get a token price
Search for a token you don’t know the address of
List top pools by volume
Get OHLCV history for a pool
Stream live prices
Interactive REPL
dexpaprika-cli each time.
Batch prices for a portfolio
Use with AI agents
AI agents running in terminals (Claude Code, Aider, etc.) can install and use the CLI as a tool. The one-liner install works in any shell:dexpaprika-cli directly with --output json --raw for machine-readable output. This is useful when:
- The agent doesn’t have MCP support
- You want the agent to script data pipelines
- You need to pipe output into other tools (
jq,csvkit, scripts) - You’re running headless or in CI/CD
Troubleshooting
Command not found after install
Command not found after install
The installer puts the binary in Add that line to your
~/.local/bin. If that’s not in your PATH, add it:~/.bashrc, ~/.zshrc, or ~/.profile to make it permanent.Permission denied during install
Permission denied during install
The installer tries
~/.local/bin first (no sudo needed). If it falls back to /usr/local/bin, it will ask for sudo. You can also set a custom directory:No data returned for a token
No data returned for a token
Check the network ID (must be lowercase:
ethereum, not Ethereum) and verify the token address. Use dexpaprika-cli search <name> to find the correct network and address.Streaming disconnects
Streaming disconnects
SSE streams can drop due to network issues. The
stream command will show an error. Restart it — the CLI handles reconnection. For production use, wrap it in a script with retry logic.Next steps
REST API Reference
Full endpoint documentation with interactive playground
Streaming API
Real-time price streaming docs
Common Patterns
Standard API workflows
Vibe Coding with AI
Build projects with AI + DexPaprika
FAQs
Do I need an API key?
Do I need an API key?
No. The CLI uses the public DexPaprika API. No keys, no registration.
What are the rate limits?
What are the rate limits?
Same as the REST API: 10,000 requests per day. Each CLI command makes one API call (except
stream, which is a single long-lived SSE connection).Does the CLI support the filter endpoint?
Does the CLI support the filter endpoint?
The filter endpoint can be accessed via the REST API directly. Check the pool filtering tutorial for examples.
Can I use the CLI on Windows?
Can I use the CLI on Windows?
Yes. Download the Windows binary from the releases page. The install script works on macOS and Linux only.