Skip to content

Conversation

@retraca
Copy link
Contributor

@retraca retraca commented Feb 6, 2024

No description provided.

@linear
Copy link

linear bot commented Feb 6, 2024

PRO-825 USD Price API

Odos does not support Scroll

Odos API:
https://docs.odos.xyz/api/quickstart/pricing

Defined API:
https://docs.defined.fi/reference/gettokenprices

Telegram group w/ Defined:
https://t.me/+-aJP3pGiR7RmMjQx

If the Odos API returns

{
  "detail": "No price available for this chain and address"
}

then we should fallback to the current method for Subgraph fetching of usdPrice

FIN should use only the Subgraph for now

Note: if usdPrice is 0, display $-.--

Note: not every chain will support Odos (example: Scroll)

So, we should add this to the apiSupport config

@vercel
Copy link

vercel bot commented Feb 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
poolshark-interface ✅ Ready (Inspect) Visit Preview Feb 6, 2024 5:29pm

@retraca
Copy link
Contributor Author

retraca commented Feb 6, 2024

Need to use cached requests for feature to be completed

@retraca retraca changed the title PRO-825 token price api integration PRO-825 token price api integration [onHold] Feb 11, 2024
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.

2 participants