Socket
Socket
Sign inDemoInstall

CoinMktCap

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

CoinMktCap

Python wrapper for CoinMarketCap API


Maintainers
1

CoinMarketCap API

License

Unofficial Python wrapper around the CoinMarketCap API

Installation

PyPI

Use the following command to install:

  • pip install CoinMktCap

Source Code

  •  git clone https://github.com/sarthakkimtani/CoinMktCap.git
     cd CoinMktCap
     python setup.py install
    

Example

  from CoinMktCap import CoinMarketCap
  
  market = CoinMarketCap("API_KEY")
  eth = market.cryptocurrency_info(symbol="ETH")
  
  something(eth.data)

Methods

Pass the required parameters for each endpoint. Refer the docs

MethodDefinitionEndpoint
cryptocurrency_mapMap of all currencies/cryptocurrency/map
cryptocurrency_infoInfo of specified currency/cryptocurrency/info/
cryptocurrency_latest_listingsActive cryptocurrencies with latest market data/cryptocurrency/listings/latest
cryptocurrency_historical_listingsCryptocurrencies for a historical UTC date/cryptocurrency/listings/historical
cryptocurrency_latest_quotesLatest market quote for 1 or more cryptocurrencies/cryptocurrency/quotes/latest
cryptocurrency_historical_quotesHistoric market quotes for any cryptocurrency/cryptocurrency/quotes/historical
cryptocurrency_market_pairsActive market pairs for given cryptocurrency/cryptocurrrency/market-pairs/latest
cryptocurrency_latest_ohlcvLatest OHLCV (Open, High, Low, Close, Volume)/cryptocurrency/ohlcv/latest
cryptocurrency_historical_ohlcvHistorical OHLCV (Open, High, Low, Close, Volume)/cryptocurrency/ohlcv/historical
exchange_mapList of all active cryptocurrency exchanges/exchange/map
exchange_infoStatic metadata for one or more exchanges/exchange/info
exchange_latest_listingsList of all cryptocurrency exchanges/exchange/listings/latest
exchange_historical_listingsHistoric market quotes for any exchange/exchange/listings/historical
exchange_latest_quotesLatest aggregate market data for 1 or more exchanges/exchange/quotes/latest
exchange_historical_quotesHistoric quotes for any exchange/exchange/quotes/historical
exchange_market_pairsMarket pairs for a given exchange/exchange/market-pairs/latest
global_metrics_latestLatest global cryptocurrency market metrics/global-metrics/quotes/latest
global_metrics_historicalHistorical global cryptocurrency market metricsglobal-metrics/quotes/historical
price_conversion_toolConvert an amount of one cryptocurrency or fiat currencytools/price-conversion
blockchain_latestLatest blockchain statisticsblockchain/statistics/latest
fiat_mapMapping of all supported fiat currenciesfiat/map
key_infoAPI key detailskey/info

Properties

  • data (dict): will give you the result.
  • status (dict): the status object always included for both successful calls and failures.
  • timesamp (str): current time on the server when the call was executed.
  • error_code (str | None): In case of an error has been raised, this property will give you the status error code.
  • error_message (str | None): In case of an error has been raised, this property will give details about error.

License

MIT License

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc