Skip to main content
Help us improve Python packaging – donate today!

Python API for coinmarketcap.com.

Project Description

coinmarketcap is an APACHE licensed library written in Python designed to provide a simple to use API for coinmarketcap. As coinmarketcap does not provide any API endpoints, this code is pretty dirty.

Installation:

From source use

$ python setup.py install

or install from PyPi

$ pip install coinmarketcap

API Documentation:

This API can currently retrieve the following data from coinmarketcap:

  • Rank:
>>> import coinmarketcap
>>> coinmarketcap.rank('btc')
1
  • Name:
>>> coinmarketcap.name('btc')
Bitcoin
  • Market capitalization (last 24h):
>>> coinmarketcap.market_cap('btc')
$ 7,768,506,597
  • Price:
>>> coinmarketcap.price('btc')
$ 600.77
  • Total coins:
>>> coinmarketcap.total_coins('btc')
12,930,825 BTC
  • Market Volume:
>>> coinmarketcap.market_volume('btc')
$ 10,744,269
  • Market capitalization change (last 24h):
>>> coinmarketcap.market_cap_change('btc')
+0.79 %
  • Last update:
>>> coinmarketcap.last_updated()
Last updated: Jun 22, 2014  3:45 PM UTC
  • Total market capitalization:
>>> coinmarketcap.total_market_cap()
Total Market Cap: $ 8,408,262,217
  • Total currencies available:
>>> coinmarketcap.total_currencies()
344 Currencies

License:

Apache v2.0 License
Copyright 2014 Martin Simon

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

Buy me a coffee?

If you feel like buying me a coffee (or a beer?), donations are welcome:

WDC : WbcWJzVD8yXt3yLnnkCZtwQo4YgSUdELkj
HBN : F2Zs4igv8r4oJJzh4sh4bGmeqoUxLQHPki
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS

Release history Release notifications

History Node

4.2.1

History Node

4.2.0

History Node

4.1.2

History Node

4.1.1

History Node

4.1

History Node

4.0.1

History Node

4.0

History Node

3.0.1

History Node

3.0

History Node

2.0.1

History Node

2.0

History Node

1.2.1

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.7

History Node

0.6.1

History Node

0.6

History Node

0.5

History Node

0.4.1

History Node

0.4

History Node

0.3

This version
History Node

0.2

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
coinmarketcap-0.2.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Jun 23, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page