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
15
votes
2 answers

How can I get a list of the 300 first coins of coingecko API by marketcap?

If I make a request to get the full list of coingecko coins using with https://api.coingecko.com/api/v3/coins/list and get the ids of each coins taking the 'id' entry. Then I can loop on all coins id with…
saturn
  • 161
  • 1
  • 1
  • 6
4
votes
1 answer

Specifying exact market to fetch data from

I have this GET request (I am using CoinGecko v3 API): https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=bitcoin%2Cethereum&order=market_cap_desc&per_page=10&page=1&sparkline=false&price_change_percentage=24h and here is the…
Whirlwind
  • 14,286
  • 11
  • 68
  • 157
4
votes
1 answer

Next.js using getServerSideProps how do i pass props from page to components?

I am trying to fetch coingecko-api to access live price of bitcoin. I am trying to pass return props of getServerSideProps to my component which is the part of
component. I was trying to import async function in…
Dedal
  • 107
  • 1
  • 1
  • 8
4
votes
1 answer

Get all cryptocurrencies github repositories on coingecko API

How can I get all cryptocurrencies github main accounts (where there is one) ? This information should be able with Coingecko API, as for instance we can see here a line called source code giving the address of the bitcoin github repository. I want…
Li Tuan
  • 41
  • 2
3
votes
3 answers

Is there a workaround to get past CoinGecko API security check?

I was running my code at work, and it just went smoothly, but on a different network (Home WiFi), I keep receiving 403 error when accessing CoinGecko V3 API. It can be observed that accessing the API on a private browser (to test it) will prompt a…
Rod Maniego
  • 139
  • 3
  • 10
1
vote
1 answer

C++ Json parsing issue throws Unhandled Exception

`` I am trying to order a vector of coins to be traded in order of their market cap rank. it compiles perfectly and runs but throws an error 3 at runtime. code found below. debugging: json.hpp Throws unhandled exception Unhandled exception at…
John Doe
  • 47
  • 6
1
vote
0 answers

Python Eel - WebSocket connection to 'wss://cable.coingecko.com/cable' failed:

I have hard time in solving this problem when using Eel. I've used the free CoinGeckoAPI to display widgets in my page (using this template). Everything seemed fine until I checked the console of chrome devtools and found out these errors: It seems…
1
vote
1 answer

Problem fetching prince on Coingecko (React)

I'm trying to play with Coingecko API just to get better at React but I'm already stuck ahah The general app is very simple for now, index is displaying cards of all tokens with ticker and price. And each card is clickable to go on a more detailed…
Charly
  • 65
  • 4
1
vote
1 answer

Why do I get Invalid date at the beginning of each month?

Goal: Import data from coinGecko API server to Google Apps Script then send it to Google Sheets. It imports yesterday's information from the coinGecko server. Issue: The API server returns an error, only at the beginning (end) of the month. Error…
Jinn Jinn
  • 25
  • 5
1
vote
1 answer

NodeJS Mapping API data from Fetch in a JS file to an EJS Table

I have retrieved JSON data from Coingecko API, I wish to map it into a table on an ejs file, does anybody know how I would do so? GET for the EJS page with the API fetch inside (Located in a file called indexRoutes.js Location from root folder:…
Erratic
  • 51
  • 5
1
vote
0 answers

Obtaining historical total crypto Market cap data through an API

I have been searching for a way to retrieve historical and current total crypto market data through an API without paying a fortune. My end goal is to be able to calculate coin dominance for any coin I am interested in. Coingecko only seems to…
wemmett
  • 53
  • 5
1
vote
1 answer

how show multiple array in pandas dataframe with python

Array : [{'base': 'BTC', 'target': 'USDT', 'market': {'name': 'Binance', 'identifier': 'binance', 'has_trading_incentive': False}, 'last': 40557.66, 'volume': 56710.07310532919, 'converted_last': {'btc': 0.99765331, 'eth': 14.387789, 'usd':…
Fety Lona
  • 11
  • 2
1
vote
0 answers

Telegram Crypto Bot

I have a problem. I'm getting Crypto information from CoinGeckoAPI. Information is not sorted. So I sorted. When I'm running this file with print. It works. But When I would like to reply user's message in Telegram, I have not got the same result.…
Sabyr
  • 11
  • 2
1
vote
1 answer

Python API - Filter result by element

I'm working with CoinGecko APIs (https://www.coingecko.com/en/api/documentation) but I have a problem in selecting the call element i need. The code is the one below: from pycoingecko import CoinGeckoAPI cg = CoinGeckoAPI() mhccex =…
Andrea
  • 19
  • 3
1
vote
1 answer

API coingecko data - doNotDelete

I use Coingecko's importJSON code to load data into a Google Sheet. The last parameter of the url (see below) is called 'doNotDelete!$A$!'. If I run the importJSON function in my sheet a numeric value in cell A1 of the tab doNotDelete shows up. What…
1
2 3 4 5