Skip to main content

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('bitcoin')
1
  • Name:

>>> coinmarketcap.name('bitcoin')
Bitcoin
  • Symbol:

>>> coinmarketcap.short('bitcoin')
BTC
  • Market capitalization (last 24h):

>>> coinmarketcap.market_cap('bitcoin')
$ 7,644,402,276
  • Price:

>>> coinmarketcap.price('bitcoin')
$ 583.77
  • Total coins:

>>> coinmarketcap.coin_supply('bitcoin')
13,094,775
  • Market Volume:

>>> coinmarketcap.market_volume('bitcoin')
$ 8,122,070
  • Market capitalization change (1 hour):

>>> coinmarketcap.cap_change_1h('bitcoin')
0.17 %
  • Market capitalization change (24 hours):

>>> coinmarketcap.cap_change_24h('bitcoin')
-1.07 %
  • Market capitalization change (7 days):

>>> coinmarketcap.cap_change_7d('bitcoin')
-2.10 %
  • Coin summary:

>>> coinmarketcap.coin_summary('bitcoin')
{
    "cap_change_1h": "0.17 %",
    "market_cap": "$ 7,644,402,276",
    "name": "Bitcoin",
    "price": "$ 583.77",
    "rank": "1",
    "short": "BTC",
    "coin_supply": "13,094,775",
    "market_volume": "$ 8,122,070",
    "cap_change_7d": "-2.10 %",
    "cap_change_24h": "-1.07 %"
}
  • Last update:

>>> coinmarketcap.last_updated()
Last updated: Aug 03, 2014  9:05 AM UTC
  • Total market capitalization:

>>> coinmarketcap.total_market_cap()
Total Market Cap: $ 8,191,266,103
  • Coinmarketcap stats:

>>> coinmarketcap.stats()
451 Currencies / 1243 Markets

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 files for coinmarketcap 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coinmarketcap 0.4.1
File Size Uploaded
coinmarketcap-0.4.1.tar.gz 4.2 kB Details

Release files / coinmarketcap-0.4.1.tar.gz

Download URL coinmarketcap-0.4.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b7fdb40dff1f61adafa46f0fa652fa527603c6f07957e7ce69d21247838ebb46
BLAKE2b-256 checksum
How to use checksums
dd25e472768e6e8e74952db3dd53887f02d2ff92f3eb2b0d68bc5d30d1ba7ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

5.0.3

1 release file

5.0.2

1 release file

5.0.1

1 release file

4.2.1

1 release file

4.2.0

1 release file

4.1.2

1 release file

4.1.1

1 release file

4.1

1 release file

4.0.1

1 release file

4.0

1 release file

3.0.1

1 release file

3.0

1 release file

2.0.1

1 release file

2.0

1 release file

1.2.1

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.7

1 release file

0.6.1

1 release file

0.6

1 release file

0.5

1 release file

This release

0.4.1 This release

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page