Skip to main content

Installation

# Using pip
pip install dexpaprika-sdk

# Using poetry
poetry add dexpaprika-sdk

# From source
git clone https://github.com/coinpaprika/dexpaprika-sdk-python.git
cd dexpaprika-sdk-python
pip install -e .

Prerequisites

  • Python 3.8 or higher
  • Connection to the internet to access the DexPaprika API
  • No API key required

Quick Example: Get Token Price

from dexpaprika_sdk import DexPaprikaClient
from dexpaprika_sdk.models import TokenDetails  # Type hint example

# Create client and get WETH price on Ethereum
client = DexPaprikaClient()
token: TokenDetails = client.tokens.get_details("ethereum", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2")
print(f"{token.name}: ${token.price_usd}")
# Output: Wrapped Ether: $3245.67

API Methods Reference

Parameters marked with an asterisk (*) are required.
Networks
category
DEXes
category
Pools
category
Tokens
category
Utils
category

Complete Example

Advanced Features

Error Handling

Caching System

Pagination Helper

Parameter Validation

Working with Models

Resources

API Status

The DexPaprika API provides consistent data with stable endpoints. No API key is currently required to access the service. We aim to maintain backward compatibility and provide notice of any significant changes.

FAQs

No. The API is public; no keys or registration required.
Use Coverage Checker or list Networks and query Tokens/Pools to discover addresses.
Use pools/transactions endpoints with pool_address, network, and time/paging params as documented.
Handle retries for transient HTTP errors and keep calls reasonable for public endpoints.
I