Open bro-n-bro-0 opened 1 week ago
@iljagrabar14
regarding point 2 https://docs.coingecko.com/v3.0.1/reference/authentication
Algo is needed to refactor
/v1/chains
endpoint /v1/chain/{chain}/assets
Following the recent improvements, the Skychart API is no longer required. The service should be updated to utilize the chain-registry repository directly. Here's the proposed workflow:
Repository Sync:
No Changes Detected:
Changes Detected:
This approach eliminates reliance on the Skychart API while ensuring up-to-date and accurate token information.
Also, would be cool to force add BTC, ETH and USDT to the list @iljagrabar14
The new API service will consist of three main components:
Token Tracking Service: This service will track new tokens. It should fetch the full list of available tokens from this source, process each token through this endpoint, and store only those tokens that have a
coingecko_id
field.Token Price Update Service: This service will update token prices and store them in the database. It will loop through the list of tokens already saved in the database, checking each token’s price. Since we are using the public CoinGecko API, the request rate should not exceed 10-15 requests per minute. Additionally, token price data should be updated no less frequently than every 12 hours.
API Service: This is an API that will return data in the existing structure and format.
Infrastructure Requirements
All services, including the PostgreSQL database, should run independently within their own Docker containers, connected within a single Docker network. They should be deployed using a single
docker-compose
file for seamless startup.