Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

sterlingbeason/coinmarketcap-professional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository has been archived. Alternatives to CoinMarketCap API have emerged that are cheaper and free for cryptocurrency hobbyists.

Welcome to coinmarketcap-professional v0.0.1

This is an unofficial Python wrapper for the CoinMarketCap Professional API v1. I am in no way affiliated with CoinMarketCap, use at your own risk.

CoinMarketCap Professional API has been released to the public. API documentation and keys can be obtained from https://pro.coinmarketcap.com/.

Features

  • Authenticated requests to all valid Cryptocurrency, Exchange, Global Metrics, and Tools endpoints (v1).
  • Simple handling of unexpected HTTP error codes

... more planned.

Quick Start

from coinmarketcap_pro.client import Client
client = Client("API-KEY-HERE") # replace with your API key

# request specific endpoint w/ optional params
response = client.request_api_endpoint("cryptocurrency/map", {'limit': 10}) # returns dictionary from parsed JSON response

if response["status"]["error_code"] is not 0:
    # error exists
    print(response["status"])
else:
    # successful response
    print(response)

About

CoinMarketCap Professional API python implementation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages