Which Horizon endpoint should we be using to access current prices for tokens?

I've read through the docs entirely and am assuming the order_book endpoint contains the current price in its response. However, is this the best way?

Any advice would be helpful.

1 Answer 1


The current SDEX price can be retrieved from the order_book endpoint. You can also check the liquidity_pools/POOLID/trades endpoint to see the last price from the liquidity pool. Finally, to get the best price you should use paths/strict-send.

  • can you give an example of the path finding you mention? I cannot get any path queries to return a path to use in a strict payment. Commented Jun 23, 2022 at 16:21
  • horizon.stellar.org/paths/… This will give you the best path to convert 100XLM to USDC. If the path is empty, it just means there is no intermediary market that offers a best price that XLM/USDC.
    – Vinamo
    Commented Jun 24, 2022 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.