CoinPaprika Python SDK
The official Python client library for the CoinPaprika API provides convenient access to cryptocurrency market data.Installation
Install the CoinPaprika Python SDK using pip:Quick Start
Free Plan
For basic usage with the free API plan:Pro Plan
To access Pro features and higher rate limits, initialize the client with your API key.Get your API key at coinpaprika.com/api
Common Use Cases
Getting Market Data
Coin Information
Historical Data
The primary method for fetching historical OHLCV data isohlcv()
. Using an API key is required for most historical data access.
Exchange Data
Search and Price Conversion
People and Tags
Error Handling
The client raises specific exceptions for different HTTP error codes. It is best practice to catch these specific exceptions.Available Methods
Global Data
global_market()
- Get global market overview.
Coins
coins()
- List all coins.coin(coin_id)
- Get details for a specific coin.twitter(coin_id)
- Get a coin’s Twitter timeline.events(coin_id)
- Get a coin’s events.exchanges(coin_id)
- Get exchanges for a specific coin.markets(coin_id, **params)
- Get market data for a specific coin.candle(coin_id, **params)
- Get the latest OHLCV data for a coin.historical(coin_id, **params)
- Get historical OHLCV data.today(coin_id)
- Get today’s OHLC data.
People
people(person_id)
- Get person by ID.
Tags
tags(sort_by)
- List tags.tag(tag_id)
- Get tag by ID.
Tickers
tickers()
- Get tickers for all coins.ticker(coin_id)
- Get ticker for a specific coin.historical_ticker(coin_id, **params)
- Get historical ticks.
Exchanges
exchange_list()
- List all exchanges.exchange(exchange_id, **params)
- Get a specific exchange.exchange_markets(exchange_id, **params)
- Get exchange markets.
Tools
search(q, **params)
- Search for coins, exchanges, etc.price_converter(**params)
- Convert between currencies.
Requirements
- Python >= 3.7
requests
library