-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API refactor #2
Comments
regarding point 2 |
Algo is needed to refactor
|
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:
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.The text was updated successfully, but these errors were encountered: