Tim_haydn Posted July 4, 2022 Share Posted July 4, 2022 Hey, I want to fetch all the data like current price, OHLC etc.... between two currency/asset pairs from XRP Blockchain, I see that Ripple Data API v2 has endpoints for this but its depcreated now https://xrpl.org/data-api.html Documentation suggests to use Web socket or HTTP but I do not see any endpoints to get asset details https://xrpl.org/public-api-methods.html Can anyone help me with that? Link to comment Share on other sites More sharing options...
Triceratops Posted July 4, 2022 Share Posted July 4, 2022 I think this is what you are looking for:https://xrpl.org/book_offers.html Link to comment Share on other sites More sharing options...
Tim_haydn Posted July 12, 2022 Author Share Posted July 12, 2022 Hey @Triceratops, thank you for your response. I see this provides a list of existing offers between two assets/pair, but it does not provide actual current price. Let's say, there is an asset called USD and I want to know current price of USD/XRP, how should I get it? I believe book_offers will provide price of USD that other users are willing to trade for which are not fulfiled. Link to comment Share on other sites More sharing options...
Triceratops Posted July 13, 2022 Share Posted July 13, 2022 https://github.com/XRPL-Labs/XRPL-Orderbook-Reader This is code form XRPLabs, they are also using book_offers to calculate the dex prices. Maybe you find what you need in there... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now