messari / messari-python-api

Python client for Messari's API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[DEPRECATED] Messari API

Messari provides a free API for crypto prices, market data metrics, on-chain metrics, and qualitative information (asset profiles).

This documentation will provide the basic steps to start using messari’s python library.

Remote Install

To install the messari package remotely:

$> pip install git+https://github.com/messari/messari-python-api.git

Local Install

To install the messari package from the source:

$> git clone https://github.com/messari/messari-python-api.git
$> cd messari-python-api
messari-python-api$> python -m pip install -r requirements.txt
messari-python-api$> python setup.py install

Quickstart

For a quick demo, you can try the following:

$> python
>>> from messari.messari import Messari
>>> messari = Messari(<optional API_KEY>)
>>> assets = ['btc', 'eth']
>>> metric = 'price'
>>> start = '2020-06-01'
>>> end = '2021-01-01'
>>> timeseries_df = messari.get_metric_timeseries(asset_slugs=assets, asset_metric=metric, start=start, end=end)
>>> print(timeseries_df)

Docs

To open the offical docs go here.

Examples can be found in this Jupyter Notebook.

About

Python client for Messari's API

License:MIT License


Languages

Language:Python 99.2%Language:Makefile 0.8%