Paths API

The Paths API section of the Orion protocol provides endpoints for identifying optimal trading paths between two different assets:

  1. GET /api/v1/paths/{exchange}/{assetIn}/{assetOut} - This endpoint identifies the most favorable trading path for converting one asset into another within a specific exchange. The {exchange}, {assetIn}, and {assetOut} path parameters indicate the exchange and the assets involved in the conversion. The endpoint uses available data to determine the path that will provide the best value given current market conditions on the specified exchange. As for the {exchange} value, these ones are supported: BINANCE, KUCOIN, ASCENDEX, OKX, ORION_POOL, ORION, UNISWAP, PANCAKESWAP, SPOOKYSWAP, QUICKSWAP, CHERRYSWAP, OKXSWAP, CURVE, CURVE_FACTORY

  2. GET /api/v1/paths/{assetIn}/{assetOut} - This endpoint identifies the optimal trading path for converting one asset into another, irrespective of the exchange. The {assetIn} and {assetOut} path parameters indicate the assets involved in the conversion. This endpoint examines data from all available exchanges to determine the path that will provide the most advantageous conversion.

The Paths API offers customers with the knowledge they need to perform deals in a way that maximizes output token amount. Users may utilize these endpoints to make educated choices regarding their trading strategy, whether they are working within a single exchange or investigating possibilities throughout the whole marketplace.

Last updated