Orca Whirlpool Integration
Learn how to interact with Orca Whirlpools for concentrated liquidity
Interact with Orca’s Whirlpool protocol for concentrated liquidity positions. Manage positions, provide liquidity, and create pools with customizable price ranges.
Position Management
Create centered positions
Create single-sided positions
Close positions
Fetch position data
Liquidity Provision
Symmetric ranges
Custom price ranges
Single-token deposits
Multiple fee tiers
Copy
const result = await agent.methods.orcaOpenCenteredPositionWithLiquidity(
new PublicKey("whirlpool-address"),
500, // 5% range (±2.5%)
new PublicKey("token-mint"),
new Decimal(100) // Amount to deposit
);Copy
Copy
Copy
Copy
Copy
Copy
Copy
Copy
Copy
Copy
Copy
Position Creation
Monitor price ranges
Consider fee tiers
Verify token amounts
Check slippage
Range Selection
Analyze volatility
Consider trading volume
Monitor price trends
Balance risk/reward
Position Management
Monitor in-range status
Track fee earnings
Rebalance when needed
Plan exit strategy
Performance
Use price oracles
Batch transactions
Monitor gas costs
Handle timeouts
Price Range
Out of bounds
Too narrow
Asymmetric ranges
Price movement
Liquidity
Insufficient funds
Unbalanced tokens
High slippage
Pool constraints
Technical
Invalid addresses
Tick spacing
Transaction failure
RPC errors
USDC:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vSOL:
So11111111111111111111111111111111111111112ORCA:
orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZEUSDT:
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
orcaFetchPositions: Get position dataorcaClosePosition: Close positionsgetBalance: Check token balancesgetTokenData: Get token information
Last updated