> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bendbasis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Arbitrage opportunities

> Funding arbitrage opportunities

Use this endpoint to fetch arbitrage opportunities across markets.

Use `base_assets` to filter by asset symbols (for example: `ETH,BTC`).
Use `exchanges` to filter by exchange keys (for example: `bybit,binance`).

<Note>
  Each row contains both leg context: `long_exchange`, `long_quote`, `short_exchange`, `short_quote`.
</Note>


## OpenAPI

````yaml GET /api/v1/public/funding/arbitrage
openapi: 3.1.0
info:
  title: bendbasis Public API
  description: >-
    Public funding endpoints for markets, arbitrage opportunities, and funding
    history.
  version: 1.0.0
servers:
  - url: https://bendbasis.com
security: []
paths:
  /api/v1/public/funding/arbitrage:
    get:
      summary: Arbitrage opportunities
      description: Arbitrage opportunities with long/short exchange and quote context.
      operationId: getFundingArbitrage
      parameters:
        - name: base_assets
          in: query
          required: false
          description: >-
            Optional base asset filter. Supports CSV (`BTC,ETH`) and repeated
            query params (`?base_assets=BTC&base_assets=ETH`).
          schema:
            type: string
          example: BTC,ETH
        - name: exchanges
          in: query
          required: false
          description: >-
            Optional exchange filter. Supports CSV (`bybit,binance`) and
            repeated query params (`?exchanges=bybit&exchanges=binance`). Match
            applies to either long or short leg.
          schema:
            type: string
          example: bybit,binance
      responses:
        '200':
          description: Arbitrage response
          headers:
            X-API-Version:
              schema:
                type: string
              example: v1
            Cache-Control:
              schema:
                type: string
              example: >-
                public, max-age=0, s-maxage=<seconds-until-08:30-UTC>,
                stale-while-revalidate=300
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ArbitrageRow'
              example:
                - base_asset: XCU
                  apr_15d: 74.64
                  stability: 1
                  long_market_id: 2396751
                  short_market_id: 2295154
                  long_exchange: edgex
                  long_quote: USD
                  short_exchange: gate
                  short_quote: USDT
                - base_asset: FIL
                  apr_15d: 49.95
                  stability: 0.987461
                  long_market_id: 9422404
                  short_market_id: 268893
                  long_exchange: gains
                  long_quote: Arb USDC
                  short_exchange: grvt
                  short_quote: USDT
components:
  schemas:
    ArbitrageRow:
      type: object
      properties:
        base_asset:
          type: string
          description: Base asset symbol.
        apr_15d:
          type: number
          description: 15-day APR spread in percent.
        stability:
          type:
            - number
            - 'null'
          description: Stability score for the opportunity.
        long_market_id:
          type: integer
          description: Market ID for the long leg.
        short_market_id:
          type: integer
          description: Market ID for the short leg.
        long_exchange:
          type: string
          description: Exchange name for the long leg.
        long_quote:
          type:
            - string
            - 'null'
          description: Quote currency for the long leg.
        short_exchange:
          type: string
          description: Exchange name for the short leg.
        short_quote:
          type:
            - string
            - 'null'
          description: Quote currency for the short leg.

````