Skip to content
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

Add Dexscreener Data Source for Token Price Fetching #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mide001
Copy link

@Mide001 Mide001 commented Mar 21, 2025

Description

This PR integrates Dexscreener as a new data source to fetch the current price of any token on Base. Previously, when fetching token balances, only the number of tokens was returned without their USD value. This update ensures that we can retrieve the real-time price of tokens, making it easier to calculate their actual worth.

Fixes # (issue)

This resolves the issue where token balances were returned without a corresponding USD value.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

How Has This Been Tested?

  • Successfully fetched token prices using Dexscreener for different contract addresses on Base.
  • Verified that returned values match the expected price from Dexscreener API.

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

Screenshots (if appropriate):

Screenshot 2025-03-21 at 14 24 46 Screenshot 2025-03-21 at 15 55 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant