An open API service indexing awesome lists of open source software.

https://github.com/oanderoficial/api_coingecko


https://github.com/oanderoficial/api_coingecko

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

API CoinGecko

![image](https://github.com/user-attachments/assets/923bd627-75fb-4e3a-a85d-68a0536bf323)

Bibliotecas utilizadas

```python
import pandas as pd
import streamlit as st
import plotly.express as px
import requests
```

API

```python
url = "https://api.coingecko.com/api/v3/coins/markets"
parametros = {
"vs_currency": "brl",
"order": "market_cap_desc",
"per_page": 1000,
"page": 1,
"sparkline": "false"
}

response = requests.get(url, params=parametros)
data = response.json()
```
Link: https://www.coingecko.com/pt/api

Dataframe

```python
df = pd.DataFrame(data)
print(df.head())
```