curl
Get current BTC-to-currency exchange rates
curl 'https://api.coingecko.com/api/v3/exchange_rates' \
-d '{"status": {"error_code": 429, "error_message": "You've exceeded the Rate Limit. Please visit https://www.coingecko.com/en/api/pricing to subscribe to our API plans for higher rate limits."}}'
import requests
resp = requests.get(
"https://api.coingecko.com/api/v3/exchange_rates",
json={
'status': {'error_code': 429, 'error_message': "You've exceeded the Rate Limit. Please visit https://www.coingecko.com/en/api/pricing to subscribe to our API plans for higher rate limits."},
},
)
data = resp.json()
import zingu_apis
api = zingu_apis.api("coingecko")
result = api.fetch("exchange_rates")
for item in result:
print(item)
const body = {
"status": {
"error_code": 429,
"error_message": "You've exceeded the Rate Limit. Please visit https://www.coingecko.com/en/api/pricing to subscribe to our API plans for higher rate limits."
}
};
const resp = await fetch("https://api.coingecko.com/api/v3/exchange_rates", {
body: JSON.stringify(body),
});
const data = await resp.json();