pycoingecko


Namepycoingecko JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttps://github.com/man-c/pycoingecko
SummaryPython wrapper around the CoinGecko API
upload_time2022-10-26 15:26:46
maintainer
docs_urlNone
authorChristoforou Manolis
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CoinGecko API wrapper
[![PyPi Version](https://img.shields.io/pypi/v/pycoingecko.svg)](https://pypi.python.org/pypi/pycoingecko/)
![GitHub](https://img.shields.io/github/license/man-c/pycoingecko)

Python3 wrapper around the [CoinGecko](https://www.coingecko.com/) API (V3)

### Installation
PyPI
```bash
pip install -U pycoingecko
```
or from source
```bash
git clone https://github.com/man-c/pycoingecko.git
cd pycoingecko
python3 setup.py install
```

### Usage

For **free API**:
```python
from pycoingecko import CoinGeckoAPI
cg = CoinGeckoAPI()
```

For users with **Pro API** Key:
```python
from pycoingecko import CoinGeckoAPI
cg = pycoingecko.CoinGeckoAPI(api_key='YOUR_API_KEY')
```

### Examples
The required parameters for each endpoint are defined as required (mandatory) parameters for the corresponding functions.\
**Any optional parameters** can be passed using same names, as defined in CoinGecko API doc (https://www.coingecko.com/en/api/documentation).

For any parameter:
- ***Lists** are supported as input for multiple-valued comma-separated parameters\
  (e.g. see /simple/price usage examples).*
- ***Booleans** are supported as input for boolean type parameters; they can be `str` ('true', 'false'') or `bool` (`True`, `False`)\
  (e.g. see /simple/price usage examples).*

Usage examples:
```python
# /simple/price endpoint with the required parameters
>>> cg.get_price(ids='bitcoin', vs_currencies='usd')
{'bitcoin': {'usd': 3462.04}}

>>> cg.get_price(ids='bitcoin,litecoin,ethereum', vs_currencies='usd')
# OR (lists can be used for multiple-valued arguments)
>>> cg.get_price(ids=['bitcoin', 'litecoin', 'ethereum'], vs_currencies='usd')
{'bitcoin': {'usd': 3461.27}, 'ethereum': {'usd': 106.92}, 'litecoin': {'usd': 32.72}}

>>> cg.get_price(ids='bitcoin,litecoin,ethereum', vs_currencies='usd,eur')
# OR (lists can be used for multiple-valued arguments)
>>> cg.get_price(ids=['bitcoin', 'litecoin', 'ethereum'], vs_currencies=['usd', 'eur'])
{'bitcoin': {'usd': 3459.39, 'eur': 3019.33}, 'ethereum': {'usd': 106.91, 'eur': 93.31}, 'litecoin': {'usd': 32.72, 'eur': 28.56}}

# optional parameters can be passed as defined in the API doc (https://www.coingecko.com/api/docs/v3)
>>> cg.get_price(ids='bitcoin', vs_currencies='usd', include_market_cap='true', include_24hr_vol='true', include_24hr_change='true', include_last_updated_at='true')
{'bitcoin': {'usd': 3458.74, 'usd_market_cap': 60574330199.29028, 'usd_24h_vol': 4182664683.6247883, 'usd_24h_change': 1.2295378479069035, 'last_updated_at': 1549071865}}
# OR (also booleans can be used for boolean type arguments)
>>> cg.get_price(ids='bitcoin', vs_currencies='usd', include_market_cap=True, include_24hr_vol=True, include_24hr_change=True, include_last_updated_at=True)
{'bitcoin': {'usd': 3458.74, 'usd_market_cap': 60574330199.29028, 'usd_24h_vol': 4182664683.6247883, 'usd_24h_change': 1.2295378479069035, 'last_updated_at': 1549071865}}
```

### API documentation
https://www.coingecko.com/en/api/documentation

### Endpoints included
> :warning: **Endpoints documentation**: To make sure that you are using properly each endpoint you should check the [API documentation](https://www.coingecko.com/en/api/documentation). Return behaviour and parameters of the endpoints, such as *pagination*, might have changed. <br> Any **optional parameters** defined in CoinGecko API doc can be passed as function parameters using same parameters names with the API *(see Examples above)*.
<details><summary>ping</summary>
<p>

* **/ping** (Check API server status)
  ```python
  cg.ping()
  ```
</details>

<details><summary>simple</summary>
<p>

* **/simple/price** (Get the current price of any cryptocurrencies in any other supported currencies that you need)
  ```python
  cg.get_price()
  ```
* **/simple/token_price/{id}** (Get current price of tokens (using contract addresses) for a given platform in any other currency that you need)
  ```python
  cg.get_token_price()
  ```
* **/simple/supported_vs_currencies** (Get list of supported_vs_currencies)
  ```python
  cg.get_supported_vs_currencies()
  ```
</details>

<details><summary>coins</summary>
<p>

* **/coins/list** (List all supported coins id, name and symbol (no pagination required))
  ```python
  cg.get_coins_list()
  ```

* **/coins/markets** (List all supported coins price, market cap, volume, and market related data)
  ```python 
  cg.get_coins_markets()
  ```
* **/coins/{id}** (Get current data (name, price, market, ... including exchange tickers) for a coin)
  ```python 
  cg.get_coin_by_id()
  ```
* **/coins/{id}/tickers** (Get coin tickers (paginated to 100 items))
  ```python 
  cg.get_coin_ticker_by_id()
  ```
* **/coins/{id}/history** (Get historical data (name, price, market, stats) at a given date for a coin)
  ```python 
  cg.get_coin_history_by_id()
  ```
* **/coins/{id}/market_chart** (Get historical market data include price, market cap, and 24h volume (granularity auto))
  ```python 
  cg.get_coin_market_chart_by_id()
  ```
* **/coins/{id}/market_chart/range** (Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto))
  ```python 
  cg.get_coin_market_chart_range_by_id()
  ```

[//]: # (* **/coins/{id}/status_updates** &#40;Get status updates for a given coin &#40;beta&#41;&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_coin_status_updates_by_id&#40;&#41;)

[//]: # (  ```)
* **/coins/{id}/ohlc** (Get coin's OHLC (beta))
  ```python
  cg.get_coin_ohlc_by_id()
  ```
</details>

<details><summary>contract</summary>
<p>

* **/coins/{id}/contract/{contract_address}** (Get coin info from contract address)
  ```python
  cg.get_coin_info_from_contract_address_by_id()
  ```
* **/coins/{id}/contract/{contract_address}/market_chart/** (Get historical market data include price, market cap, and 24h volume (granularity auto) from a contract address)
  ```python
  cg.get_coin_market_chart_from_contract_address_by_id()
  ```
* **/coins/{id}/contract/{contract_address}/market_chart/range** (Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto) from a contract address)
  ```python
  cg.get_coin_market_chart_range_from_contract_address_by_id()
  ```
</details>

<details><summary>asset_platforms</summary>
<p>

* **/asset_platforms** (List all asset platforms (Blockchain networks))
  ```python
  cg.get_asset_platforms()
  ```
</details>

<details><summary>categories</summary>
<p>

* **/coins/categories/list** (List all categories)
  ```python
  cg.get_coins_categories_list()
  ```
* **coins/categories** (List all categories with market data)
  ```python
  cg.get_coins_categories()
  ```
</details>

<details><summary>exchanges</summary>
<p>

* **/exchanges** (List all exchanges)
  ```python
  cg.get_exchanges_list()
  ```
* **/exchanges/list** (List all supported markets id and name (no pagination required))
  ```python
  cg.get_exchanges_id_name_list()
  ```
* **/exchanges/{id}** (Get exchange volume in BTC and top 100 tickers only)
  ```python
  cg.get_exchanges_by_id()
  ```
* **/exchanges/{id}/tickers** (Get exchange tickers (paginated, 100 tickers per page))
  ```python
  cg.get_exchanges_tickers_by_id()
  ```

[//]: # (* **/exchanges/{id}/status_updates** &#40;Get status updates for a given exchange &#40;beta&#41;&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_exchanges_status_updates_by_id&#40;&#41;)

[//]: # (  ```)
* **/exchanges/{id}/volume_chart** (Get volume_chart data for a given exchange)
  ```python
  cg.get_exchanges_volume_chart_by_id()
  ```
</details>

[//]: # (<details><summary>finance</summary>)

[//]: # (<p>)

[//]: # ()
[//]: # (* **/finance_platforms** &#40;List all finance platforms&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_finance_platforms&#40;&#41;)

[//]: # (  ```)

[//]: # (* **/finance_products** &#40;List all finance products&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_finance_products&#40;&#41;)

[//]: # (  ```)

[//]: # (</details>)

<details><summary>indexes</summary>
<p>

* **/indexes** (List all market indexes)
```python
cg.get_indexes()
```
* **/indexes/{market_id}/{id}** (Get market index by market id and index id)
```python
cg.get_indexes_by_market_id_and_index_id()
```
* **/indexes/list** (List market indexes id and name)
```python
cg.get_indexes_list()
```
</details>

<details><summary>derivatives</summary>
<p>

* **/derivatives** (List all derivative tickers)
  ```python
  cg.get_derivatives()
  ```
* **/derivatives/exchanges** (List all derivative exchanges)
  ```python
  cg.get_derivatives_exchanges()
  ```
* **/derivatives/exchanges/{id}** (Show derivative exchange data)
  ```python
  cg.get_derivatives_exchanges_by_id()
  ```
* **/derivatives/exchanges/list** (List all derivative exchanges name and identifier)
  ```python
  cg.get_derivatives_exchanges_list()
  ```
</details>

<details><summary>nfts (beta)</summary>
<p>

* **/nfts/list** (List all supported NFT ids, paginated by 100 items per page, paginated to 100 items)
  ```python
  cg.get_nfts_list()
  ```
* **/nfts/{id}** (Get current data (name, price_floor, volume_24h ...) for an NFT collection. native_currency (string) is only a representative of the currency.)
  ```python
  cg.get_nfts_by_id()
  ```
* **/nfts/{asset_platform_id}/contract/{contract_address}** (Get current data (name, price_floor, volume_24h ...) for an NFT collection. native_currency (string) is only a representative of the currency)
  ```python
  cg.get_nfts_collection_by_asset_platform_id_and_contract_address()
  ```
</details>

[//]: # (<details><summary>status_updates</summary>)

[//]: # (<p>)

[//]: # ()
[//]: # (* **/status_updates** &#40;List all status_updates with data &#40;description, category, created_at, user, user_title and pin&#41;&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_status_updates&#40;&#41;)

[//]: # (  ```)

[//]: # (</details>)

[//]: # (<details><summary>events</summary>)

[//]: # (<p>)

[//]: # ()
[//]: # (* **/events** &#40;Get events, paginated by 100&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_events&#40;&#41;)

[//]: # (  ```)

[//]: # (* **/events/countries** &#40;Get list of event countries&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_events_countries&#40;&#41;)

[//]: # (  ```)

[//]: # (* **/events/types** &#40;Get list of events types&#41;)

[//]: # (  ```python)

[//]: # (  cg.get_events_types&#40;&#41;)

[//]: # (  ```)

[//]: # (</details>)

<details><summary>exchange_rates</summary>
<p>

* **/exchange_rates** (Get BTC-to-Currency exchange rates)
  ```python
  cg.get_exchange_rates()
  ```
</details>

<details><summary>search</summary>
<p>

* **/search** (Search for coins, categories and markets on CoinGecko)
  ```python
  cg.search()
  ```
</details>

<details><summary>trending</summary>
<p>

* **/search/trending** (Get trending search coins (Top-7) on CoinGecko in the last 24 hours)
  ```python
  cg.get_search_trending()
  ```
</details>

<details><summary>global</summary>
<p>

  - **/global** (Get cryptocurrency global data)
    ```python
    cg.get_global()
    ```
  - **/global/decentralized_finance_defi** (Get cryptocurrency global decentralized finance(defi) data)
    ```python
    cg.get_global_decentralized_finance_defi()
    ```
</details>

<details><summary>companies (beta)</summary>
<p>

  - **/companies/public_treasury/{coin_id}** (Get public companies data)
    ```python
    cg.get_companies_public_treasury_by_coin_id()
    ```
</details>

### Test

#### Installation
Install required packages for testing using:
```bash
pip install pytest responses
```

#### Usage

Run unit tests with:

```
# after installing pytest and responses using pip3
pytest tests
```

## License
[MIT](https://choosealicense.com/licenses/mit/)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/man-c/pycoingecko",
    "name": "pycoingecko",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Christoforou Manolis",
    "author_email": "emchristoforou@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/23/03/ed739d694bd1e0681f2e61cb7ff8a9949dc5dd62d8525e911511260b0efe/pycoingecko-3.1.0.tar.gz",
    "platform": null,
    "description": "# CoinGecko API wrapper\n[![PyPi Version](https://img.shields.io/pypi/v/pycoingecko.svg)](https://pypi.python.org/pypi/pycoingecko/)\n![GitHub](https://img.shields.io/github/license/man-c/pycoingecko)\n\nPython3 wrapper around the [CoinGecko](https://www.coingecko.com/) API (V3)\n\n### Installation\nPyPI\n```bash\npip install -U pycoingecko\n```\nor from source\n```bash\ngit clone https://github.com/man-c/pycoingecko.git\ncd pycoingecko\npython3 setup.py install\n```\n\n### Usage\n\nFor **free API**:\n```python\nfrom pycoingecko import CoinGeckoAPI\ncg = CoinGeckoAPI()\n```\n\nFor users with **Pro API** Key:\n```python\nfrom pycoingecko import CoinGeckoAPI\ncg = pycoingecko.CoinGeckoAPI(api_key='YOUR_API_KEY')\n```\n\n### Examples\nThe required parameters for each endpoint are defined as required (mandatory) parameters for the corresponding functions.\\\n**Any optional parameters** can be passed using same names, as defined in CoinGecko API doc (https://www.coingecko.com/en/api/documentation).\n\nFor any parameter:\n- ***Lists** are supported as input for multiple-valued comma-separated parameters\\\n  (e.g. see /simple/price usage examples).*\n- ***Booleans** are supported as input for boolean type parameters; they can be `str` ('true', 'false'') or `bool` (`True`, `False`)\\\n  (e.g. see /simple/price usage examples).*\n\nUsage examples:\n```python\n# /simple/price endpoint with the required parameters\n>>> cg.get_price(ids='bitcoin', vs_currencies='usd')\n{'bitcoin': {'usd': 3462.04}}\n\n>>> cg.get_price(ids='bitcoin,litecoin,ethereum', vs_currencies='usd')\n# OR (lists can be used for multiple-valued arguments)\n>>> cg.get_price(ids=['bitcoin', 'litecoin', 'ethereum'], vs_currencies='usd')\n{'bitcoin': {'usd': 3461.27}, 'ethereum': {'usd': 106.92}, 'litecoin': {'usd': 32.72}}\n\n>>> cg.get_price(ids='bitcoin,litecoin,ethereum', vs_currencies='usd,eur')\n# OR (lists can be used for multiple-valued arguments)\n>>> cg.get_price(ids=['bitcoin', 'litecoin', 'ethereum'], vs_currencies=['usd', 'eur'])\n{'bitcoin': {'usd': 3459.39, 'eur': 3019.33}, 'ethereum': {'usd': 106.91, 'eur': 93.31}, 'litecoin': {'usd': 32.72, 'eur': 28.56}}\n\n# optional parameters can be passed as defined in the API doc (https://www.coingecko.com/api/docs/v3)\n>>> cg.get_price(ids='bitcoin', vs_currencies='usd', include_market_cap='true', include_24hr_vol='true', include_24hr_change='true', include_last_updated_at='true')\n{'bitcoin': {'usd': 3458.74, 'usd_market_cap': 60574330199.29028, 'usd_24h_vol': 4182664683.6247883, 'usd_24h_change': 1.2295378479069035, 'last_updated_at': 1549071865}}\n# OR (also booleans can be used for boolean type arguments)\n>>> cg.get_price(ids='bitcoin', vs_currencies='usd', include_market_cap=True, include_24hr_vol=True, include_24hr_change=True, include_last_updated_at=True)\n{'bitcoin': {'usd': 3458.74, 'usd_market_cap': 60574330199.29028, 'usd_24h_vol': 4182664683.6247883, 'usd_24h_change': 1.2295378479069035, 'last_updated_at': 1549071865}}\n```\n\n### API documentation\nhttps://www.coingecko.com/en/api/documentation\n\n### Endpoints included\n> :warning: **Endpoints documentation**: To make sure that you are using properly each endpoint you should check the [API documentation](https://www.coingecko.com/en/api/documentation). Return behaviour and parameters of the endpoints, such as *pagination*, might have changed. <br> Any **optional parameters** defined in CoinGecko API doc can be passed as function parameters using same parameters names with the API *(see Examples above)*.\n<details><summary>ping</summary>\n<p>\n\n* **/ping** (Check API server status)\n  ```python\n  cg.ping()\n  ```\n</details>\n\n<details><summary>simple</summary>\n<p>\n\n* **/simple/price** (Get the current price of any cryptocurrencies in any other supported currencies that you need)\n  ```python\n  cg.get_price()\n  ```\n* **/simple/token_price/{id}** (Get current price of tokens (using contract addresses) for a given platform in any other currency that you need)\n  ```python\n  cg.get_token_price()\n  ```\n* **/simple/supported_vs_currencies** (Get list of supported_vs_currencies)\n  ```python\n  cg.get_supported_vs_currencies()\n  ```\n</details>\n\n<details><summary>coins</summary>\n<p>\n\n* **/coins/list** (List all supported coins id, name and symbol (no pagination required))\n  ```python\n  cg.get_coins_list()\n  ```\n\n* **/coins/markets** (List all supported coins price, market cap, volume, and market related data)\n  ```python \n  cg.get_coins_markets()\n  ```\n* **/coins/{id}** (Get current data (name, price, market, ... including exchange tickers) for a coin)\n  ```python \n  cg.get_coin_by_id()\n  ```\n* **/coins/{id}/tickers** (Get coin tickers (paginated to 100 items))\n  ```python \n  cg.get_coin_ticker_by_id()\n  ```\n* **/coins/{id}/history** (Get historical data (name, price, market, stats) at a given date for a coin)\n  ```python \n  cg.get_coin_history_by_id()\n  ```\n* **/coins/{id}/market_chart** (Get historical market data include price, market cap, and 24h volume (granularity auto))\n  ```python \n  cg.get_coin_market_chart_by_id()\n  ```\n* **/coins/{id}/market_chart/range** (Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto))\n  ```python \n  cg.get_coin_market_chart_range_by_id()\n  ```\n\n[//]: # (* **/coins/{id}/status_updates** &#40;Get status updates for a given coin &#40;beta&#41;&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_coin_status_updates_by_id&#40;&#41;)\n\n[//]: # (  ```)\n* **/coins/{id}/ohlc** (Get coin's OHLC (beta))\n  ```python\n  cg.get_coin_ohlc_by_id()\n  ```\n</details>\n\n<details><summary>contract</summary>\n<p>\n\n* **/coins/{id}/contract/{contract_address}** (Get coin info from contract address)\n  ```python\n  cg.get_coin_info_from_contract_address_by_id()\n  ```\n* **/coins/{id}/contract/{contract_address}/market_chart/** (Get historical market data include price, market cap, and 24h volume (granularity auto) from a contract address)\n  ```python\n  cg.get_coin_market_chart_from_contract_address_by_id()\n  ```\n* **/coins/{id}/contract/{contract_address}/market_chart/range** (Get historical market data include price, market cap, and 24h volume within a range of timestamp (granularity auto) from a contract address)\n  ```python\n  cg.get_coin_market_chart_range_from_contract_address_by_id()\n  ```\n</details>\n\n<details><summary>asset_platforms</summary>\n<p>\n\n* **/asset_platforms** (List all asset platforms (Blockchain networks))\n  ```python\n  cg.get_asset_platforms()\n  ```\n</details>\n\n<details><summary>categories</summary>\n<p>\n\n* **/coins/categories/list** (List all categories)\n  ```python\n  cg.get_coins_categories_list()\n  ```\n* **coins/categories** (List all categories with market data)\n  ```python\n  cg.get_coins_categories()\n  ```\n</details>\n\n<details><summary>exchanges</summary>\n<p>\n\n* **/exchanges** (List all exchanges)\n  ```python\n  cg.get_exchanges_list()\n  ```\n* **/exchanges/list** (List all supported markets id and name (no pagination required))\n  ```python\n  cg.get_exchanges_id_name_list()\n  ```\n* **/exchanges/{id}** (Get exchange volume in BTC and top 100 tickers only)\n  ```python\n  cg.get_exchanges_by_id()\n  ```\n* **/exchanges/{id}/tickers** (Get exchange tickers (paginated, 100 tickers per page))\n  ```python\n  cg.get_exchanges_tickers_by_id()\n  ```\n\n[//]: # (* **/exchanges/{id}/status_updates** &#40;Get status updates for a given exchange &#40;beta&#41;&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_exchanges_status_updates_by_id&#40;&#41;)\n\n[//]: # (  ```)\n* **/exchanges/{id}/volume_chart** (Get volume_chart data for a given exchange)\n  ```python\n  cg.get_exchanges_volume_chart_by_id()\n  ```\n</details>\n\n[//]: # (<details><summary>finance</summary>)\n\n[//]: # (<p>)\n\n[//]: # ()\n[//]: # (* **/finance_platforms** &#40;List all finance platforms&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_finance_platforms&#40;&#41;)\n\n[//]: # (  ```)\n\n[//]: # (* **/finance_products** &#40;List all finance products&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_finance_products&#40;&#41;)\n\n[//]: # (  ```)\n\n[//]: # (</details>)\n\n<details><summary>indexes</summary>\n<p>\n\n* **/indexes** (List all market indexes)\n```python\ncg.get_indexes()\n```\n* **/indexes/{market_id}/{id}** (Get market index by market id and index id)\n```python\ncg.get_indexes_by_market_id_and_index_id()\n```\n* **/indexes/list** (List market indexes id and name)\n```python\ncg.get_indexes_list()\n```\n</details>\n\n<details><summary>derivatives</summary>\n<p>\n\n* **/derivatives** (List all derivative tickers)\n  ```python\n  cg.get_derivatives()\n  ```\n* **/derivatives/exchanges** (List all derivative exchanges)\n  ```python\n  cg.get_derivatives_exchanges()\n  ```\n* **/derivatives/exchanges/{id}** (Show derivative exchange data)\n  ```python\n  cg.get_derivatives_exchanges_by_id()\n  ```\n* **/derivatives/exchanges/list** (List all derivative exchanges name and identifier)\n  ```python\n  cg.get_derivatives_exchanges_list()\n  ```\n</details>\n\n<details><summary>nfts (beta)</summary>\n<p>\n\n* **/nfts/list** (List all supported NFT ids, paginated by 100 items per page, paginated to 100 items)\n  ```python\n  cg.get_nfts_list()\n  ```\n* **/nfts/{id}** (Get current data (name, price_floor, volume_24h ...) for an NFT collection. native_currency (string) is only a representative of the currency.)\n  ```python\n  cg.get_nfts_by_id()\n  ```\n* **/nfts/{asset_platform_id}/contract/{contract_address}** (Get current data (name, price_floor, volume_24h ...) for an NFT collection. native_currency (string) is only a representative of the currency)\n  ```python\n  cg.get_nfts_collection_by_asset_platform_id_and_contract_address()\n  ```\n</details>\n\n[//]: # (<details><summary>status_updates</summary>)\n\n[//]: # (<p>)\n\n[//]: # ()\n[//]: # (* **/status_updates** &#40;List all status_updates with data &#40;description, category, created_at, user, user_title and pin&#41;&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_status_updates&#40;&#41;)\n\n[//]: # (  ```)\n\n[//]: # (</details>)\n\n[//]: # (<details><summary>events</summary>)\n\n[//]: # (<p>)\n\n[//]: # ()\n[//]: # (* **/events** &#40;Get events, paginated by 100&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_events&#40;&#41;)\n\n[//]: # (  ```)\n\n[//]: # (* **/events/countries** &#40;Get list of event countries&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_events_countries&#40;&#41;)\n\n[//]: # (  ```)\n\n[//]: # (* **/events/types** &#40;Get list of events types&#41;)\n\n[//]: # (  ```python)\n\n[//]: # (  cg.get_events_types&#40;&#41;)\n\n[//]: # (  ```)\n\n[//]: # (</details>)\n\n<details><summary>exchange_rates</summary>\n<p>\n\n* **/exchange_rates** (Get BTC-to-Currency exchange rates)\n  ```python\n  cg.get_exchange_rates()\n  ```\n</details>\n\n<details><summary>search</summary>\n<p>\n\n* **/search** (Search for coins, categories and markets on CoinGecko)\n  ```python\n  cg.search()\n  ```\n</details>\n\n<details><summary>trending</summary>\n<p>\n\n* **/search/trending** (Get trending search coins (Top-7) on CoinGecko in the last 24 hours)\n  ```python\n  cg.get_search_trending()\n  ```\n</details>\n\n<details><summary>global</summary>\n<p>\n\n  - **/global** (Get cryptocurrency global data)\n    ```python\n    cg.get_global()\n    ```\n  - **/global/decentralized_finance_defi** (Get cryptocurrency global decentralized finance(defi) data)\n    ```python\n    cg.get_global_decentralized_finance_defi()\n    ```\n</details>\n\n<details><summary>companies (beta)</summary>\n<p>\n\n  - **/companies/public_treasury/{coin_id}** (Get public companies data)\n    ```python\n    cg.get_companies_public_treasury_by_coin_id()\n    ```\n</details>\n\n### Test\n\n#### Installation\nInstall required packages for testing using:\n```bash\npip install pytest responses\n```\n\n#### Usage\n\nRun unit tests with:\n\n```\n# after installing pytest and responses using pip3\npytest tests\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python wrapper around the CoinGecko API",
    "version": "3.1.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "ca1cb1c7661637a3a3dc02e35a25b2ff",
                "sha256": "5798240c0ffccfea14635b7ce42f90e49c8ba54a3cfa3e233fcc99df087485f6"
            },
            "downloads": -1,
            "filename": "pycoingecko-3.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ca1cb1c7661637a3a3dc02e35a25b2ff",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8848,
            "upload_time": "2022-10-26T15:26:42",
            "upload_time_iso_8601": "2022-10-26T15:26:42.155403Z",
            "url": "https://files.pythonhosted.org/packages/4f/3d/23f29f18e8059e33f37b2d55aace0417c4fca22770f952126cac4f3c0c38/pycoingecko-3.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "0f9f3b5cf1767fd2b261f7151c774ad7",
                "sha256": "dcc08522c160e88bd1deb50bbab390be33dce87abb10a91ce6013d15bf859c12"
            },
            "downloads": -1,
            "filename": "pycoingecko-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0f9f3b5cf1767fd2b261f7151c774ad7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10449,
            "upload_time": "2022-10-26T15:26:46",
            "upload_time_iso_8601": "2022-10-26T15:26:46.331843Z",
            "url": "https://files.pythonhosted.org/packages/23/03/ed739d694bd1e0681f2e61cb7ff8a9949dc5dd62d8525e911511260b0efe/pycoingecko-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-10-26 15:26:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "man-c",
    "github_project": "pycoingecko",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pycoingecko"
}
        
Elapsed time: 0.01903s