https://github.com/oanderoficial/api_coingecko
https://github.com/oanderoficial/api_coingecko
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oanderoficial/api_coingecko
- Owner: oanderoficial
- Created: 2024-08-02T16:23:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-02T17:04:05.000Z (about 1 year ago)
- Last Synced: 2025-01-31T16:22:24.474Z (8 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
API CoinGecko

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/apiDataframe
```python
df = pd.DataFrame(data)
print(df.head())
```