Orion Protocol
  • Building on Orion
    • Architecture
    • SDK (Javascript)
      • Integration Guide
      • High level methods
      • Low level methods
    • APIs
      • Aggregator API
        • Order API
        • Exchange API
        • Swap API
          • DEX liquidity
          • How to Use Swap API
        • Orderbook API
        • Paths API
        • Pairs API
        • Pools API
        • Atomic Swap API
          • How to Use Atomic Swap
        • WebSocket API
    • Smart Contracts
      • Oracle
    • Public Repositories
Powered by GitBook
On this page
  1. Building on Orion
  2. APIs
  3. Aggregator API

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.

PreviousOrderbook APINextPairs API

Last updated 1 year ago