Limitless Integration

Limitless is a prediction market built natively on the Base blockchain. This makes it the easiest venue to integrate technically, as it shares the same network as the Oraclyst Protocol.

1. Data Indexing: Envio

Limitless does not provide a traditional REST API. Instead, it relies on Envio, a high-performance blockchain indexer. Querying the blockchain directly via RPC is too slow for a trading terminal; therefore, we use Envio's GraphQL endpoint.

  • Endpoint: https://indexer.limitless.exchange/v1/graphql

  • Query Strategy:

    query GetMarkets {
      markets(where: { closed: false }) {
        id
        title
        outcomeTokenPrices
        liquidityUSD
        collateralToken
      }
    }

    We poll this endpoint every 2 seconds to update the UI.

2. Direct Contract Execution

Trading on Limitless involves direct interaction with their smart contracts on Base. There is no off-chain matching engine; everything is on-chain.

  • Contract Architecture: Limitless uses a fork of the Gnosis CTF.

  • Function Call: buy(uint256 marketId, uint8 outcomeIndex, uint256 minOutcomeTokens)

  • Atomic Swaps: Since Oraclyst SOTs are also on Base, we can potentially build Flash Swap adapters. This would allow a user to swap SOT-POLY-YES for SOT-LIMITLESS-NO in a single transaction, using the Limitless liquidity pools as the exit route.

Last updated