Skip to content

coinpaprika/coinpaprika-api-python-client

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages