Skip to main content

Check & test & build

Coinpaprika API Python Client

Usage

This library provides convenient way to use Coinpaprika API in Python.

Coinpaprika delivers full market data to the world of crypto: coin prices, volumes, market caps, ATHs, return rates and more.

For details and limitations please check the documentation

Requirements

pip install coinpaprika-sdk

Getting started

Free plan client

from coinpaprika import client as Coinpaprika

client = Coinpaprika.Client()

Pro plan client

from coinpaprika import client as Coinpaprika

client = Coinpaprika.Client(api_key="YOUR-API-KEY")

API KEY can be generated https://coinpaprika.com/api/.

API Coverage

Market Data

client.global_market()                    # Global market overview
client.coins()                            # List all coins
client.coin("btc-bitcoin")               # Coin details
client.tickers()                          # All tickers
client.ticker("btc-bitcoin")             # Ticker for specific coin
client.historical("btc-bitcoin", start="2024-01-01")  # Historical tickers (Pro)

OHLCV

client.candle("btc-bitcoin")              # Latest 24h OHLCV
client.ohlcv("btc-bitcoin", start="2024-01-01")  # Historical OHLCV
client.today("btc-bitcoin")              # Today's OHLCV (updates until close)

Exchanges

client.exchange_list()                    # List exchanges
client.exchange("binance")               # Exchange details
client.exchange_markets("binance")       # Markets on exchange

Contracts

client.platforms()                        # List contract platforms
client.contracts("eth-ethereum")          # Contracts on Ethereum
client.ticker_by_contract("eth-ethereum", "0xdac1...")  # Ticker by contract
client.historical_by_contract("eth-ethereum", "0xdac1...", start="2024-01-01")  # Historical by contract

Other

client.search(q="bitcoin")               # Search coins, exchanges, people, tags
client.price_converter(base_currency_id="btc-bitcoin", quote_currency_id="usd-us-dollars", amount=1)
client.coin_mappings()                    # ID mappings to CoinGecko, CMC, etc. (Pro)
client.people("vitalik-buterin")         # Person details
client.tags()                             # List tags
client.tag("blockchain-service")         # Tag details
client.twitter("btc-bitcoin")            # Twitter timeline
client.events("btc-bitcoin")             # Coin events
client.exchanges("btc-bitcoin")          # Exchanges for coin
client.markets("btc-bitcoin")            # Markets for coin
client.key_info()                         # API key usage info (requires key)
client.changelog_ids()                    # Recent changelog IDs (Pro)

Examples

Check out the ./examples directory.

Tests

pip install -r test_requirements.txt

pytest tests/test_api_request.py

License

See the LICENSE file for more info.

Source

Based on repository which is not maintained anymore: s0h3ck/coinpaprika-api-python-client

Release files for coinpaprika-sdk 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coinpaprika-sdk 1.1.0
File Size Uploaded
coinpaprika_sdk-1.1.0.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coinpaprika-sdk 1.1.0
File Interpreter ABI Platform
coinpaprika_sdk-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / coinpaprika_sdk-1.1.0.tar.gz

Download URL coinpaprika_sdk-1.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
070253ec1d43ff72c0edbb2f5e0c9b41f835883d783ed2a27309c84649f3afe3
BLAKE2b-256 checksum
How to use checksums
5ffca019e57c3af9d3af21ddca2b563a2184d00d76d89d54a50d2ef849e43e0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / coinpaprika_sdk-1.1.0-py3-none-any.whl

Download URL coinpaprika_sdk-1.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76a400b60165efc017d1bc7f354c4a9e717857d83f14ccd29230daaddbd41f55
BLAKE2b-256 checksum
How to use checksums
c403d00e0793603c9ad23b70628b8780d63cc3fd38dc5145876c0b7e5b785154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page