Questions tagged [coingecko]

Use for questions regarding programmatic access of coingecko api. Use with the tag of the language(eg:[python], [javascript]) used to access the api.

CoinGecko is a website and API offering data for many cryptocurrencies.

Official Documentation:

https://www.coingecko.com/en/api/documentation

69 questions
0
votes
1 answer

How do I fetch more than one ID in an API endpoint that only supports one ID per request?

I'm using Coingecko API for price data and time (Unix) to output this in a chart, but the endpoint I'm using only supports one ID per request. document.onreadystatechange = async () => { if (document.readyState === "complete") { const coin =…
0
votes
1 answer

Coingecko links properties can't be accessed

I'm using the following way to access a property on coingecko's API: https://api.coingecko.com/api/v3/coins, this returns all crypto coins and their properties. While using the above link I can access the IDs of any object in the response. but if…
Yuda
  • 69
  • 7
0
votes
1 answer

CoinGecko API: Can't resolve 'https' and Can't resolve 'querystring'

I'm just getting started with the CoinGecko API but the first call I made to /ping. It gives me the error Module not found: Error: Can't resolve 'https'. Any idea why is this happening? I'm doing it with react, here is the…
Rodragon
  • 27
  • 5
0
votes
0 answers

Cant traverse correctly in for loop using range

I have to loop through the five coins and save their daily price results in a list. data = ['bitcoin', 'ethereum', 'cardano', 'binancecoin', 'tether'] coinlist = [] for i in data: lst = cg.get_coin_market_chart_by_id(id = i, vs_currency = 'INR',…
Gautam Jha
  • 29
  • 1
  • 6
0
votes
1 answer

How to get API data to a separate HTML page

I'm building a project using coingecko's cryptocurrency api. Currently I have a chart displaying statistics 1-100 of the highest ranking coins. What is the best way to click on the individual coins and load an information page for that specific…
KaiTheGuy
  • 93
  • 1
  • 8
0
votes
1 answer

I want to refresh the api section every 10 secondes with React

I want to repeat this action and re-render it every 10 secondes. Can someone help me with that ? useEffect(() => { const fetchData = async () => { setIsLoading(true) const response = await coinGecko.get("/coins/markets", { params:…
AllanOnAir
  • 23
  • 2
0
votes
2 answers

How does coingecko api requests limit work? Getting too many requests error after second request

I am trying to get some data from coingecko. In the first request fetching list of 100 biggest currencies. In following requests I want to fetch some detailed info about the biggest currencies. Unfortunately already for the second request I am…
Emil Haas
  • 484
  • 3
  • 17
0
votes
1 answer

pycoingecko: how to get all market data for all coins?

I am new to coding and am currently trying pull all market for all coins from CoinGecko using Python. Using pycoingecko, I can use cg.get_coins_list() to get all coins and ids, and I can use cg.get_coins_markets() to get the top 250 coins, however I…
cdotw
  • 1
  • 2
0
votes
1 answer

Python3 save a json to a csv file from Coingeko API

I am struggling to convert a json file to a csv file. Any help would be appreciated. I am using Python3 Code import json import urllib.request url =…
Lee
  • 39
  • 7
0
votes
1 answer

Link binance balance and coingecko info

Using node-binance-api package and method balance i get a map where the key is a symbol and value my current balance. Next, I would like to fetch some information from CoinGecko. So, firstly I get coins list by calling this endpoint…
0
votes
1 answer

Context Provider not re-rendering on state change

This is the code. const [coins, setCoins] = useState([]) const [sortedCoins, setSortedCoins] = useState([]) With useEffect, I request from an API code and store it in coins, then I store that same data in sortedCoins, then with this function I…
0
votes
1 answer

Next.js JSON Retrieval - JSON Objects Issue

I am working on a simple crypto price tracker using coingecko API. My current code will not access any of the JSON objects from the API link and I get no errors or warnings indicating what the issue is:…
kieron
  • 332
  • 3
  • 19
0
votes
0 answers

Dynamic Query Selector with own Event Listener

Hi i am using Javascript to Call a API for Pricefeed from Coingecko. I use a Function to add Div's from a button for choosing Coins that will display Prices in different "spaces". HTML:
0
votes
1 answer

Stuck with JSON API Call in Javascript

I am trying to build a Calculator where you can Pick different Cryptocurrencies and build a Portfolio for Testing and Tracking. I choose Coingecko API v3 for this and use Fetch to do the API Calls. https://www.coingecko.com/en/api The API Calls are…
Karlo
  • 3
  • 2
0
votes
1 answer

How to get market cap of a coin using the CoinGecko C# API?

I narrowed it down to: ICoinGeckoClient CGClient = CoinGeckoClient.Instance; var result2 = CGClient.CoinsClient.GetAllCoinsData (); but I have to provide some arguments to GetAllCoinsData, but they don't make a lot of sense to me and I couldn't…
Joan Venge
  • 315,713
  • 212
  • 479
  • 689