Python client for Messari's API

Overview

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
messari$> python -m pip install -r requirements.txt
messari$> python setup.py install

Quickstart

For a quick demo, you can try the following:

$> python
>>> from messari.timeseries import get_metric_timeseries
>>> assets = ['btc', 'eth']
>>> metric = 'price'
>>> start = '2020-06-01'
>>> end = '2021-01-01'
>>> timeseries_df = 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.

You might also like...
Python Client for Instagram API

This project is not actively maintained. Proceed at your own risk! python-instagram A Python 2/3 client for the Instagram REST and Search APIs Install

A Python Client for News API

newsapi-python A Python client for the News API. License Provided under MIT License by Matt Lisivick. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRAN

SmartFile API Client (Python).
SmartFile API Client (Python).

A SmartFile Open Source project. Read more about how SmartFile uses and contributes to Open Source software. Summary This library includes two API cli

Python client for the Socrata Open Data API

sodapy sodapy is a python client for the Socrata Open Data API. Installation You can install with pip install sodapy. If you want to install from sour

Python client for the Echo Nest API
Python client for the Echo Nest API

Pyechonest Tap into The Echo Nest's Musical Brain for the best music search, information, recommendations and remix tools on the web. Pyechonest is an

A Python Tumblr API v2 Client

PyTumblr Installation Install via pip: $ pip install pytumblr Install from source: $ git clone https://github.com/tumblr/pytumblr.git $ cd pytumblr $

A super awesome Twitter API client for Python.

birdy birdy is a super awesome Twitter API client for Python in just a little under 400 LOC. TL;DR Features Future proof dynamic API with full REST an

Cord Python API Client

Cord Python API Client The data programming platform for AI 💻 Features Minimal low-level Python client that allows you to interact with Cord's API Su

Pure Python 3 MTProto API Telegram client library, for bots too!

Telethon ⭐️ Thanks everyone who has starred the project, it means a lot! Telethon is an asyncio Python 3 MTProto library to interact with Telegram's A

Comments
  • Rate Limiting for API_KEY not working.

    Rate Limiting for API_KEY not working.

    Problem Even if you are a PRO user using the API_KEY, you are rate limited as if you don't use API_KEY.

    Source of the Problem and Solution This looks to me like a bug in the code. The api_dict is not used anywhere as part of headers when elaborating/creating the requests. The get_response(...) function is expected aheaders as part of its arguments but it's not passed when called in any of the API endpoint wrappers/functions. I tested this in the get_metric_timeseries function. I did the following change in my local:

    Before:
    response = self.get_response(url, params=payload)
    
    After
    response = self.get_response(url, params=payload, headers=self.api_dict)
    

    and it worked beautifully. My requests are rate-limited now based on the API KEY. I guess a similar thing needs to be done to the rest of the functions and that should fix the problem.

    opened by KmiQ 2
  • Add empty check and chains endpoint

    Add empty check and chains endpoint

    Summary

    New /chains Endpoint

    Adding another method to the Defillama class to consume the output from the /chains API endpoint.

    This will allow us to programmatically get the TVL and/or names of all protocols for a specific chain.

    Sorting the results to ensure that they're returned consistently between runs.

    Empty Check for get_chain_tvl_timeseries

    When grabbing data from get_chain_tvl_timeseries() for certain chains, the global TVL data can come back empty (ran into this for OntologyEVM)

    To fix this, check to see if the global TVL results are empty and return an empty pd.DataFrame before assigning column names.

    Tests

    New endpoint image Results before the check Screen Shot 2022-06-06 at 3 42 23 PM

    Results after the check is added Screen Shot 2022-06-06 at 3 41 09 PM

    get_chain_tvl_timeseries() works for all chains returned when calling the /chains endpoint on Defillama image

    opened by akan72 1
Owner
Messari
An open data library for the cryptoasset class.
Messari
Python API Client for Twitter API v2

?? Python Client For Twitter API v2 ?? Why Twitter Stream ? Twitter-Stream.py a python API client for Twitter API v2 now supports FilteredStream, Samp

Twitivity 31 Nov 19, 2022
Dns-Client-Server - Dns Client Server For Python

Dns-client-server DNS Server: supporting all types of queries and replies. Shoul

Nishant Badgujar 1 Feb 15, 2022
Raphtory-client - The python client for the Raphtory project

Raphtory Client This is the python client for the Raphtory project Install via p

Raphtory 5 Apr 28, 2022
Drcom-pt-client - Drcom Pt version client with refresh timer

drcom-pt-client Drcom Pt version client with refresh timer Dr.com Pt版本客户端 可用于网页认

null 4 Nov 16, 2022
Official Python client for the MonkeyLearn API. Build and consume machine learning models for language processing from your Python apps.

MonkeyLearn API for Python Official Python client for the MonkeyLearn API. Build and run machine learning models for language processing from your Pyt

MonkeyLearn 157 Nov 22, 2022
🖥️ Python - P1 Monitor API Asynchronous Python Client

??️ Asynchronous Python client for the P1 Monitor

Klaas Schoute 9 Dec 12, 2022
Python API Client for Close

Close API A convenient Python wrapper for the Close API. API docs: http://developer.close.com Support: [email protected] Installation pip install clos

Close 56 Nov 30, 2022
Python client for CoinPayments API

pyCoinPayments - Python API client for CoinPayments Updates This library has now been converted to work with python3 This is an unofficial client for

James 27 Sep 21, 2022
DEPRECATED - Official Python Client for the Discogs API

⚠️ DEPRECATED This repository is no longer maintained. You can still use a REST client like Requests or other third-party Python library to access the

Discogs 483 Dec 31, 2022
The Foursquare API client for Python

foursquare Python client for the foursquare API. Philosophy: Map foursquare's endpoints one-to-one Clean, simple, Pythonic calls Only handle raw data,

Mike Lewis 400 Dec 19, 2022