- »
- Welcome to Messari’s Documentation!
- View page source
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.
The first step is installing messari. messari is a python project, so it can be installed like anyother python library. Every Operating System should have Python pre-installed,so you should just have to run:
$> pip install git+https://github.com/messari/messari-python-api.git
Once the python library is installed, the next step is to create an API key. To do this sign up for anaccount at https://messari.io/ and navigate to https://messari.io/account/api to generate a key.
Note
Without an API key, requests are rate limited to 20 requests per minute and 1000 requestsper day. Users that create an account will have slightly higher limits of 30 requests perminute and 2000 requests per day. PRO users have the highest limit at 60 requests per minuteup to a maximum of 4000 requests per day. Contact us at [email protected] if you need a higher limit.
Once you generate an API key, import messari then set your API key by running:
# Import Messari API wrapperfrom messari.messari import Messari# Set up Messari instanceMESSARI_API_KEY = 'add_your_api_key'messari = Messari(api_key=MESSARI_API_KEY)# Run a quick demomarkets_df = messari.get_all_markets()markets_df.head()
Note
We recommend using the library with JupyterLab. Detailedinstallation instructions can be found here.
Using conda
, you can install JupyterLab by running:
conda install -c conda-forge jupyterlab
With pip
, you can install it with:
pip install jupyterlab
Check out our examples here for detailed usage.
Here is detailed description of all the available functions in the library.