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 price endpoint #3

Closed
Uxio0 opened this issue Oct 3, 2023 · 1 comment · Fixed by #22
Closed

Add price endpoint #3

Uxio0 opened this issue Oct 3, 2023 · 1 comment · Fixed by #22
Assignees

Comments

@Uxio0
Copy link
Member

Uxio0 commented Oct 3, 2023

  • Add endpoint /api/v1/chain/{chainId}/tokens/{address]
  • It should return:
{
  "ethPrice": "<stringified int>",
  "usdPrice": "<stringified int>"
}
  • ethPrice: should be the price of the asset in the base currency of the network.
  • usdPrice: should be the price in USD for the asset.
@Uxio0 Uxio0 self-assigned this Oct 16, 2023
Uxio0 added a commit that referenced this issue Nov 20, 2023
@Uxio0 Uxio0 closed this as completed in #22 Nov 28, 2023
@JagoFigueroa
Copy link

Tested and verified locally, thanks!

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 a pull request may close this issue.

2 participants