coinapi-rest


Namecoinapi-rest JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummaryCoinAPI Python REST Client
upload_time2024-03-07 18:36:14
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT
keywords cryptocurrency crypto prices coinapi
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CoinAPI REST

[![Coverage Status](https://coveralls.io/repos/github/ljnsn/coinapi-rest/badge.svg?branch=ci/coveralls)](https://coveralls.io/github/ljnsn/coinapi-rest?branch=ci/coveralls)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![image](https://img.shields.io/pypi/v/coinapi-rest)](https://pypi.python.org/pypi/coinapi-rest)
[![image](https://img.shields.io/pypi/pyversions/coinapi-rest.svg)](https://pypi.python.org/pypi/coinapi-rest)

## Installation

```bash
pip install coinapi-rest
```

## Example Usage

### Example

```python
import coinapi

s = coinapi.CoinAPI(
    api_key="<YOUR_API_KEY_HERE>",
)


res = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)

if res.content is not None:
    # handle response
    pass
```

## Available Resources and Operations

### [metadata](docs/sdks/metadata/README.md)

* [get_v1_assets](docs/sdks/metadata/README.md#get_v1_assets) - List all assets
* [get_v1_assets_asset_id](docs/sdks/metadata/README.md#get_v1_assets_asset_id) - List all assets by asset ID
* [get_v1_assets_icons](docs/sdks/metadata/README.md#get_v1_assets_icons) - List all asset icons
* [get_v1_exchanges](docs/sdks/metadata/README.md#get_v1_exchanges) - List all exchanges
* [get_v1_exchanges_exchange_id](docs/sdks/metadata/README.md#get_v1_exchanges_exchange_id) - List all exchanges by exchange_id
* [get_v1_exchanges_icons](docs/sdks/metadata/README.md#get_v1_exchanges_icons) - List of icons for the exchanges
* [get_v1_metadata](docs/sdks/metadata/README.md#get_v1_metadata) - Base url of the API.
* [get_v1_symbols](docs/sdks/metadata/README.md#get_v1_symbols) - List all symbols
* [get_v1_symbols_map_exchange_id](docs/sdks/metadata/README.md#get_v1_symbols_map_exchange_id) - List symbol mapping for the exchange
* [get_v1_symbols_exchange_id](docs/sdks/metadata/README.md#get_v1_symbols_exchange_id) - List of symbols for the exchange

### [exchange_rates](docs/sdks/exchangerates/README.md)

* [get_v1_specific_rate](docs/sdks/exchangerates/README.md#get_v1_specific_rate) - [exchange rates] Get specific rate
* [get_v1_base_rates](docs/sdks/exchangerates/README.md#get_v1_base_rates) - [exchange rates] Get all current rates
* [get_v1_history_periods](docs/sdks/exchangerates/README.md#get_v1_history_periods) - [exchange rates] Timeseries periods
* [get_v1_pair_history](docs/sdks/exchangerates/README.md#get_v1_pair_history) - [exchange rates] Timeseries data

### [indexes](docs/sdks/indexes/README.md)

* [get_v1_indexes](docs/sdks/indexes/README.md#get_v1_indexes) - List of available indexes
* [post_v1_indexes_json](docs/sdks/indexes/README.md#post_v1_indexes_json) - Create index
* [get_v1_indexes_index_id_](docs/sdks/indexes/README.md#get_v1_indexes_index_id_) - Get index data
* [put_v1_indexes_index_id_json](docs/sdks/indexes/README.md#put_v1_indexes_index_id_json) - Update index
* [get_v1_indexes_index_id_history](docs/sdks/indexes/README.md#get_v1_indexes_index_id_history) - Retrieve Historical Index Value and Composition
* [get_v1_indexes_index_id_timeseries](docs/sdks/indexes/README.md#get_v1_indexes_index_id_timeseries) - Retrieve Historical Index Value Timeseries
* [get_v1_indexes_index_id_timeseries_to_be_announced](docs/sdks/indexes/README.md#get_v1_indexes_index_id_timeseries_to_be_announced) - Retrieve Historical Composition Value Timeseries
Retrieves historical timeseries for the specific composition value for an index

### [metrics](docs/sdks/metrics/README.md)

* [get_v1_metrics_listing](docs/sdks/metrics/README.md#get_v1_metrics_listing) - Listing of all supported metrics by CoinAPI
* [get_v1_metrics_exchange_listing](docs/sdks/metrics/README.md#get_v1_metrics_exchange_listing) - Listing of all supported exchange metrics
* [get_v1_metrics_exchange_current](docs/sdks/metrics/README.md#get_v1_metrics_exchange_current) - Current metrics for given exchange
* [get_v1_metrics_exchange_history](docs/sdks/metrics/README.md#get_v1_metrics_exchange_history) - Historical metrics for the exchange
* [get_v1_metrics_symbol_listing](docs/sdks/metrics/README.md#get_v1_metrics_symbol_listing) - Listing of all supported metrics for symbol
* [get_v1_metrics_symbol_current](docs/sdks/metrics/README.md#get_v1_metrics_symbol_current) - Current metrics for given symbol
* [get_v1_metrics_symbol_history](docs/sdks/metrics/README.md#get_v1_metrics_symbol_history) - Historical metrics for symbol
* [get_v1_metrics_asset_listing](docs/sdks/metrics/README.md#get_v1_metrics_asset_listing) - Listing of all supported metrics for asset
* [get_v1_metrics_asset_current](docs/sdks/metrics/README.md#get_v1_metrics_asset_current) - Current metrics for given asset
* [get_v1_metrics_asset_history](docs/sdks/metrics/README.md#get_v1_metrics_asset_history) - Historical metrics for asset

### [order_book](docs/sdks/orderbook/README.md)

* [get_v1_orderbooks_symbol_id_depth_current](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_depth_current) - [order book] Current depth of the order book
* [get_v1_orderbooks_symbol_id_history](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_history) - [order book] Historical data
* [get_v1_orderbooks_symbol_id_current](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_current) - Get current order book
* [get_v1_orderbooks_symbol_id_latest](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_latest) - [order book] Latest data

### [order_book_l3](docs/sdks/orderbookl3/README.md)

* [get_v1_orderbooks3_current](docs/sdks/orderbookl3/README.md#get_v1_orderbooks3_current) - [order book l3] Current order books
* [get_v1_orderbooks3_symbol_id_current](docs/sdks/orderbookl3/README.md#get_v1_orderbooks3_symbol_id_current) - [order book l3] Current order book by symbol_id

### [quotes](docs/sdks/quotes/README.md)

* [get_v1_quotes_symbol_id_history](docs/sdks/quotes/README.md#get_v1_quotes_symbol_id_history) - [quotes] Historical data
* [get_v1_quotes_current](docs/sdks/quotes/README.md#get_v1_quotes_current) - [quotes] Current data
* [get_v1_quotes_symbol_id_current](docs/sdks/quotes/README.md#get_v1_quotes_symbol_id_current) - [quotes] Current quotes for a specific symbol
* [get_v1_quotes_latest](docs/sdks/quotes/README.md#get_v1_quotes_latest) - [quotes] Latest data
* [get_v1_quotes_symbol_id_latest](docs/sdks/quotes/README.md#get_v1_quotes_symbol_id_latest) - [quotes] Latest quote updates for a specific symbol

### [ohlcv](docs/sdks/ohlcv/README.md)

* [get_v1_ohlcv_periods](docs/sdks/ohlcv/README.md#get_v1_ohlcv_periods) - [ohlcv] List all periods
* [get_v1_ohlcv_symbol_id_history](docs/sdks/ohlcv/README.md#get_v1_ohlcv_symbol_id_history) - [ohlcv] Historical data
* [get_v1_ohlcv_exchanges_exchange_id_history](docs/sdks/ohlcv/README.md#get_v1_ohlcv_exchanges_exchange_id_history) - [ohlcv] Historical data by exchange
* [get_v1_ohlcv_symbol_id_latest](docs/sdks/ohlcv/README.md#get_v1_ohlcv_symbol_id_latest) - [ohlcv] Latest data

### [trades](docs/sdks/trades/README.md)

* [get_v1_trades_symbol_id_history](docs/sdks/trades/README.md#get_v1_trades_symbol_id_history) - [trades] Historical data
* [get_v1_trades_symbol_id_latest](docs/sdks/trades/README.md#get_v1_trades_symbol_id_latest) - [trades] Latest data by symbol_id
* [get_v1_trades_latest](docs/sdks/trades/README.md#get_v1_trades_latest) - [trades] Latest data

## Error Handling

Handling errors in this SDK should largely match your expectations.  All operations return a response object or raise an error.  If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.

| Error Object    | Status Code     | Content Type    |
| --------------- | --------------- | --------------- |
| errors.CoinAPIError | 4x-5xx          | */*             |

### Example

```python
import coinapi
from coinapi.models import errors

s = coinapi.CoinAPI(
    api_key="<YOUR_API_KEY_HERE>",
)

res = None
try:
    res = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)
except errors.CoinAPIError as e:
    # handle exception
    raise (e)

if res.content is not None:
    # handle response
    pass
```

## Server Selection

### Select Server by Index

You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://rest.coinapi.io` | None |

#### Example

```python
import coinapi

s = coinapi.CoinAPI(
    server_idx=0,
    api_key="<YOUR_API_KEY_HERE>",
)


res = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)

if res.content is not None:
    # handle response
    pass
```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
```python
import coinapi

s = coinapi.CoinAPI(
    server_url="https://rest.coinapi.io",
    api_key="<YOUR_API_KEY_HERE>",
)


res = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)

if res.content is not None:
    # handle response
    pass
```

## Custom HTTP Client

The CoinAPI SDK makes API calls using the [httpx](https://pypi.org/project/httpx/) HTTP library.  In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `httpx.Client` object.

For example, you could specify a header for every request that this sdk makes as follows:
```python
import coinapi
import httpx

http_client = httpx.Client(headers={'x-custom-header': 'someValue'})
s = coinapi.CoinAPI(api_key="<YOUR_API_KEY_HERE>", client=http_client)
```

## Authentication

### Per-Client Security Schemes

This SDK supports the following security scheme globally:

| Name      | Type      | Scheme    |
| --------- | --------- | --------- |
| `api_key` | apiKey    | API key   |

To authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:
```python
import coinapi

s = coinapi.CoinAPI(
    api_key="<YOUR_API_KEY_HERE>",
)


res = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)

if res.content is not None:
    # handle response
    pass
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "coinapi-rest",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "cryptocurrency crypto prices coinapi",
    "author": "",
    "author_email": "ljnsn <info@ljnsn.com>",
    "download_url": "https://files.pythonhosted.org/packages/e3/23/9d377aae9ba5654a61a12d76237fc9d887951647ccc3535c524c548c329b/coinapi_rest-0.0.4.tar.gz",
    "platform": null,
    "description": "# CoinAPI REST\n\n[![Coverage Status](https://coveralls.io/repos/github/ljnsn/coinapi-rest/badge.svg?branch=ci/coveralls)](https://coveralls.io/github/ljnsn/coinapi-rest?branch=ci/coveralls)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![image](https://img.shields.io/pypi/v/coinapi-rest)](https://pypi.python.org/pypi/coinapi-rest)\n[![image](https://img.shields.io/pypi/pyversions/coinapi-rest.svg)](https://pypi.python.org/pypi/coinapi-rest)\n\n## Installation\n\n```bash\npip install coinapi-rest\n```\n\n## Example Usage\n\n### Example\n\n```python\nimport coinapi\n\ns = coinapi.CoinAPI(\n    api_key=\"<YOUR_API_KEY_HERE>\",\n)\n\n\nres = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)\n\nif res.content is not None:\n    # handle response\n    pass\n```\n\n## Available Resources and Operations\n\n### [metadata](docs/sdks/metadata/README.md)\n\n* [get_v1_assets](docs/sdks/metadata/README.md#get_v1_assets) - List all assets\n* [get_v1_assets_asset_id](docs/sdks/metadata/README.md#get_v1_assets_asset_id) - List all assets by asset ID\n* [get_v1_assets_icons](docs/sdks/metadata/README.md#get_v1_assets_icons) - List all asset icons\n* [get_v1_exchanges](docs/sdks/metadata/README.md#get_v1_exchanges) - List all exchanges\n* [get_v1_exchanges_exchange_id](docs/sdks/metadata/README.md#get_v1_exchanges_exchange_id) - List all exchanges by exchange_id\n* [get_v1_exchanges_icons](docs/sdks/metadata/README.md#get_v1_exchanges_icons) - List of icons for the exchanges\n* [get_v1_metadata](docs/sdks/metadata/README.md#get_v1_metadata) - Base url of the API.\n* [get_v1_symbols](docs/sdks/metadata/README.md#get_v1_symbols) - List all symbols\n* [get_v1_symbols_map_exchange_id](docs/sdks/metadata/README.md#get_v1_symbols_map_exchange_id) - List symbol mapping for the exchange\n* [get_v1_symbols_exchange_id](docs/sdks/metadata/README.md#get_v1_symbols_exchange_id) - List of symbols for the exchange\n\n### [exchange_rates](docs/sdks/exchangerates/README.md)\n\n* [get_v1_specific_rate](docs/sdks/exchangerates/README.md#get_v1_specific_rate) - [exchange rates] Get specific rate\n* [get_v1_base_rates](docs/sdks/exchangerates/README.md#get_v1_base_rates) - [exchange rates] Get all current rates\n* [get_v1_history_periods](docs/sdks/exchangerates/README.md#get_v1_history_periods) - [exchange rates] Timeseries periods\n* [get_v1_pair_history](docs/sdks/exchangerates/README.md#get_v1_pair_history) - [exchange rates] Timeseries data\n\n### [indexes](docs/sdks/indexes/README.md)\n\n* [get_v1_indexes](docs/sdks/indexes/README.md#get_v1_indexes) - List of available indexes\n* [post_v1_indexes_json](docs/sdks/indexes/README.md#post_v1_indexes_json) - Create index\n* [get_v1_indexes_index_id_](docs/sdks/indexes/README.md#get_v1_indexes_index_id_) - Get index data\n* [put_v1_indexes_index_id_json](docs/sdks/indexes/README.md#put_v1_indexes_index_id_json) - Update index\n* [get_v1_indexes_index_id_history](docs/sdks/indexes/README.md#get_v1_indexes_index_id_history) - Retrieve Historical Index Value and Composition\n* [get_v1_indexes_index_id_timeseries](docs/sdks/indexes/README.md#get_v1_indexes_index_id_timeseries) - Retrieve Historical Index Value Timeseries\n* [get_v1_indexes_index_id_timeseries_to_be_announced](docs/sdks/indexes/README.md#get_v1_indexes_index_id_timeseries_to_be_announced) - Retrieve Historical Composition Value Timeseries\nRetrieves historical timeseries for the specific composition value for an index\n\n### [metrics](docs/sdks/metrics/README.md)\n\n* [get_v1_metrics_listing](docs/sdks/metrics/README.md#get_v1_metrics_listing) - Listing of all supported metrics by CoinAPI\n* [get_v1_metrics_exchange_listing](docs/sdks/metrics/README.md#get_v1_metrics_exchange_listing) - Listing of all supported exchange metrics\n* [get_v1_metrics_exchange_current](docs/sdks/metrics/README.md#get_v1_metrics_exchange_current) - Current metrics for given exchange\n* [get_v1_metrics_exchange_history](docs/sdks/metrics/README.md#get_v1_metrics_exchange_history) - Historical metrics for the exchange\n* [get_v1_metrics_symbol_listing](docs/sdks/metrics/README.md#get_v1_metrics_symbol_listing) - Listing of all supported metrics for symbol\n* [get_v1_metrics_symbol_current](docs/sdks/metrics/README.md#get_v1_metrics_symbol_current) - Current metrics for given symbol\n* [get_v1_metrics_symbol_history](docs/sdks/metrics/README.md#get_v1_metrics_symbol_history) - Historical metrics for symbol\n* [get_v1_metrics_asset_listing](docs/sdks/metrics/README.md#get_v1_metrics_asset_listing) - Listing of all supported metrics for asset\n* [get_v1_metrics_asset_current](docs/sdks/metrics/README.md#get_v1_metrics_asset_current) - Current metrics for given asset\n* [get_v1_metrics_asset_history](docs/sdks/metrics/README.md#get_v1_metrics_asset_history) - Historical metrics for asset\n\n### [order_book](docs/sdks/orderbook/README.md)\n\n* [get_v1_orderbooks_symbol_id_depth_current](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_depth_current) - [order book] Current depth of the order book\n* [get_v1_orderbooks_symbol_id_history](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_history) - [order book] Historical data\n* [get_v1_orderbooks_symbol_id_current](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_current) - Get current order book\n* [get_v1_orderbooks_symbol_id_latest](docs/sdks/orderbook/README.md#get_v1_orderbooks_symbol_id_latest) - [order book] Latest data\n\n### [order_book_l3](docs/sdks/orderbookl3/README.md)\n\n* [get_v1_orderbooks3_current](docs/sdks/orderbookl3/README.md#get_v1_orderbooks3_current) - [order book l3] Current order books\n* [get_v1_orderbooks3_symbol_id_current](docs/sdks/orderbookl3/README.md#get_v1_orderbooks3_symbol_id_current) - [order book l3] Current order book by symbol_id\n\n### [quotes](docs/sdks/quotes/README.md)\n\n* [get_v1_quotes_symbol_id_history](docs/sdks/quotes/README.md#get_v1_quotes_symbol_id_history) - [quotes] Historical data\n* [get_v1_quotes_current](docs/sdks/quotes/README.md#get_v1_quotes_current) - [quotes] Current data\n* [get_v1_quotes_symbol_id_current](docs/sdks/quotes/README.md#get_v1_quotes_symbol_id_current) - [quotes] Current quotes for a specific symbol\n* [get_v1_quotes_latest](docs/sdks/quotes/README.md#get_v1_quotes_latest) - [quotes] Latest data\n* [get_v1_quotes_symbol_id_latest](docs/sdks/quotes/README.md#get_v1_quotes_symbol_id_latest) - [quotes] Latest quote updates for a specific symbol\n\n### [ohlcv](docs/sdks/ohlcv/README.md)\n\n* [get_v1_ohlcv_periods](docs/sdks/ohlcv/README.md#get_v1_ohlcv_periods) - [ohlcv] List all periods\n* [get_v1_ohlcv_symbol_id_history](docs/sdks/ohlcv/README.md#get_v1_ohlcv_symbol_id_history) - [ohlcv] Historical data\n* [get_v1_ohlcv_exchanges_exchange_id_history](docs/sdks/ohlcv/README.md#get_v1_ohlcv_exchanges_exchange_id_history) - [ohlcv] Historical data by exchange\n* [get_v1_ohlcv_symbol_id_latest](docs/sdks/ohlcv/README.md#get_v1_ohlcv_symbol_id_latest) - [ohlcv] Latest data\n\n### [trades](docs/sdks/trades/README.md)\n\n* [get_v1_trades_symbol_id_history](docs/sdks/trades/README.md#get_v1_trades_symbol_id_history) - [trades] Historical data\n* [get_v1_trades_symbol_id_latest](docs/sdks/trades/README.md#get_v1_trades_symbol_id_latest) - [trades] Latest data by symbol_id\n* [get_v1_trades_latest](docs/sdks/trades/README.md#get_v1_trades_latest) - [trades] Latest data\n\n## Error Handling\n\nHandling errors in this SDK should largely match your expectations.  All operations return a response object or raise an error.  If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type.\n\n| Error Object    | Status Code     | Content Type    |\n| --------------- | --------------- | --------------- |\n| errors.CoinAPIError | 4x-5xx          | */*             |\n\n### Example\n\n```python\nimport coinapi\nfrom coinapi.models import errors\n\ns = coinapi.CoinAPI(\n    api_key=\"<YOUR_API_KEY_HERE>\",\n)\n\nres = None\ntry:\n    res = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)\nexcept errors.CoinAPIError as e:\n    # handle exception\n    raise (e)\n\nif res.content is not None:\n    # handle response\n    pass\n```\n\n## Server Selection\n\n### Select Server by Index\n\nYou can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:\n\n| # | Server | Variables |\n| - | ------ | --------- |\n| 0 | `https://rest.coinapi.io` | None |\n\n#### Example\n\n```python\nimport coinapi\n\ns = coinapi.CoinAPI(\n    server_idx=0,\n    api_key=\"<YOUR_API_KEY_HERE>\",\n)\n\n\nres = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)\n\nif res.content is not None:\n    # handle response\n    pass\n```\n\n\n### Override Server URL Per-Client\n\nThe default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:\n```python\nimport coinapi\n\ns = coinapi.CoinAPI(\n    server_url=\"https://rest.coinapi.io\",\n    api_key=\"<YOUR_API_KEY_HERE>\",\n)\n\n\nres = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)\n\nif res.content is not None:\n    # handle response\n    pass\n```\n\n## Custom HTTP Client\n\nThe CoinAPI SDK makes API calls using the [httpx](https://pypi.org/project/httpx/) HTTP library.  In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `httpx.Client` object.\n\nFor example, you could specify a header for every request that this sdk makes as follows:\n```python\nimport coinapi\nimport httpx\n\nhttp_client = httpx.Client(headers={'x-custom-header': 'someValue'})\ns = coinapi.CoinAPI(api_key=\"<YOUR_API_KEY_HERE>\", client=http_client)\n```\n\n## Authentication\n\n### Per-Client Security Schemes\n\nThis SDK supports the following security scheme globally:\n\n| Name      | Type      | Scheme    |\n| --------- | --------- | --------- |\n| `api_key` | apiKey    | API key   |\n\nTo authenticate with the API the `api_key` parameter must be set when initializing the SDK client instance. For example:\n```python\nimport coinapi\n\ns = coinapi.CoinAPI(\n    api_key=\"<YOUR_API_KEY_HERE>\",\n)\n\n\nres = s.metadata.get_v1_assets(filter_asset_id='<value>', include_supply=False)\n\nif res.content is not None:\n    # handle response\n    pass\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CoinAPI Python REST Client",
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [
        "cryptocurrency",
        "crypto",
        "prices",
        "coinapi"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "332d745de2d4e656eba1e0dffb23243d4beefbd6d360ae8976ce9595e4cb0984",
                "md5": "d026c0222eac1f9fa27668ef9a464552",
                "sha256": "ec23c46d64fd114fbf021dd0760c483df8d94f1266f11f918d84629aa5b41ca8"
            },
            "downloads": -1,
            "filename": "coinapi_rest-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d026c0222eac1f9fa27668ef9a464552",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 94596,
            "upload_time": "2024-03-07T18:36:12",
            "upload_time_iso_8601": "2024-03-07T18:36:12.977457Z",
            "url": "https://files.pythonhosted.org/packages/33/2d/745de2d4e656eba1e0dffb23243d4beefbd6d360ae8976ce9595e4cb0984/coinapi_rest-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e3239d377aae9ba5654a61a12d76237fc9d887951647ccc3535c524c548c329b",
                "md5": "cf2643891c85060387b780f517416057",
                "sha256": "b620d0babb7acf5838887e5da95fd0c173b9624a8707571800ac8e7b9da558e7"
            },
            "downloads": -1,
            "filename": "coinapi_rest-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "cf2643891c85060387b780f517416057",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 994668,
            "upload_time": "2024-03-07T18:36:14",
            "upload_time_iso_8601": "2024-03-07T18:36:14.839950Z",
            "url": "https://files.pythonhosted.org/packages/e3/23/9d377aae9ba5654a61a12d76237fc9d887951647ccc3535c524c548c329b/coinapi_rest-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-07 18:36:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "coinapi-rest"
}
        
Elapsed time: 0.24020s