Skip to content

Orca

Hackathon Sponsor

Orca is a sponsor of the Agent Builders Cup, a Hummingbot strategy hackathon with a $20,000 total prize pool. Build an agent that trades on Orca and apply to the Orca team at botcamp.xyz/hackathons!

🛠 Connector Info

Component Status Notes
AMM Connector ✅ Legacy Pools
CLMM Connector ✅ Whirlpools (V3)

â„šī¸ Exchange Info

🔑 How to Connect

Orca operates exclusively on the Solana blockchain. To transact on Orca, you must configure a Solana wallet within Gateway.

Chain Networks
solana mainnet-beta, devnet

Solana

Orca's primary liquidity pools are "Whirlpools," which utilize concentrated liquidity (CLMM) technology similar to V3 pools on EVM chains.

To connect your Solana wallet:

  1. Run the Gateway connect command:
gateway connect solana
  1. Follow the prompts to either:

    • Import an existing wallet using your private key
    • Generate a new Solana wallet
  2. Select your network:

    • mainnet-beta for production trading
    • devnet for testing

The connector includes automatic WSOL (Wrapped SOL) handling and support for the Token-2022 standard.

v2.13.0 Updates:

  • Token-2022 position close: CLMM position closing now uses Token-2022 instructions, enabling full rent recovery when closing LP positions (PR #600)
  • On-chain pool pricing: Pool prices now use live on-chain whirlpool data instead of potentially stale Orca API data, improving accuracy for LP rebalancing decisions (PR #603)

v2.18.0 Updates:

  • Missing TVL is null: tvlUsdc and yieldOverTvl in pool-info, and tvl in fetch-pools, are null when Orca does not report them. They used to be 0, which read as an empty pool

Configuration

Configure Orca settings in /conf/connectors/orca.yml.

Below are the Orca configuration parameters and their default values:

# Global settings for Orca
# Default slippage percentage for swaps (2%)
slippagePct: 2

# For each swap, the maximum number of hops to consider
maximumHops: 4

CLMM Endpoints

Integration to Orca Whirlpools (concentrated liquidity)

Since v2.17.0, Gateway serves every connector through the unified /trading routes. Pass connector=orca and chainNetwork (for example solana-mainnet-beta) with each request.

  • /trading/clmm/quote-swap
  • /trading/clmm/execute-swap
  • /trading/clmm/pool-info
  • /trading/clmm/position-info
  • /trading/clmm/positions-owned
  • /trading/clmm/quote-liquidity
  • /trading/clmm/open
  • /trading/clmm/close
  • /trading/clmm/add
  • /trading/clmm/remove
  • /trading/clmm/collect-fees

For more info, run Gateway in development mode and go to http://localhost:15888 in your browser to see detailed documentation for each endpoint.