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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinpaprika_sdk-1.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coinpaprika_sdk-1.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file coinpaprika_sdk-1.1.0.tar.gz.

File metadata

  • Download URL: coinpaprika_sdk-1.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for coinpaprika_sdk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 070253ec1d43ff72c0edbb2f5e0c9b41f835883d783ed2a27309c84649f3afe3
MD5 d835c6799820fe5e188c7309fb1e6d48
BLAKE2b-256 5ffca019e57c3af9d3af21ddca2b563a2184d00d76d89d54a50d2ef849e43e0d

See more details on using hashes here.

File details

Details for the file coinpaprika_sdk-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coinpaprika_sdk-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76a400b60165efc017d1bc7f354c4a9e717857d83f14ccd29230daaddbd41f55
MD5 2a6bd39b303ec14a95993ea248491bfd
BLAKE2b-256 c403d00e0793603c9ad23b70628b8780d63cc3fd38dc5145876c0b7e5b785154

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page