For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Concentrated Liquidity (CCL)

Overview

Custom Concentrated Liquidity is an automated market-making strategy on Rujira Trade. It distributes liquidity between fixed lower and upper price boundaries, buying the base asset as prices fall through the range and selling it as prices rise.

CCL is available through the automated trading panel on Rujira Trade.

Unlike DCL, CCL’s boundaries do not automatically follow the oracle. Its quotes are derived from the position’s inventory and concentrated-liquidity curve, with a configurable spread.

CCL is designed for users who have a view on support and resistance levels, or want to choose the price range over which they accumulate or sell an asset.

How CCL works

For a BTC/USDC position:

  • BTC funds selling liquidity between the position’s internal price and the upper boundary.

  • USDC funds buying liquidity between the internal price and the lower boundary.

  • Trades change the BTC/USDC inventory and therefore the position’s internal price.

  • The lower and upper boundaries remain fixed.

As buyers consume BTC, the position becomes increasingly USDC-heavy. As sellers consume USDC, it becomes increasingly BTC-heavy.

A useful way to choose a range is to ask:

  • At what lower price would I be comfortable having my deployable inventory entirely in BTC?

  • At what upper price would I be comfortable having it entirely in USDC?

Illustrative example: A BTC/USDC position trades within a fixed range as price falls and rises, then returns to its starting price. Claimable fees are shown separately.

Example: a BTC/USDC position

Assume:

  • Starting market price: 100,000 USDC per BTC.

  • Lower boundary: 80,000 USDC.

  • Upper boundary: 125,000 USDC.

  • Initial deposit value: 10,000 USDC.

This range supports an initial deposit of approximately:

  • 0.05 BTC, worth 5,000 USDC.

  • 5,000 USDC.

As trading moves the position toward the upper boundary, it progressively sells BTC for USDC. Toward the lower boundary, it progressively spends USDC to buy BTC.

The 50/50 starting allocation is specific to this example. Other ranges generally require different proportions.

Benefits and risks

Benefits

  • Defined trading range: Choose where you are willing to accumulate and sell the base asset.

  • Concentrated liquidity: Deploy capital within a selected range rather than across all possible prices.

  • Automatic execution: The strategy supplies liquidity according to its curve without requiring you to place each order manually.

  • Customizable spread: Control how far buy and sell quotes sit from the internal price.

  • Flexible reward allocation: Keep more trading income invested or set more aside for claiming.

Risks

  • Inventory can lose value: A falling BTC price can leave the position holding more BTC as its value declines.

  • You can underperform holding: Selling BTC during a rally reduces participation in further gains.

  • Trading can pause outside the range: Once inventory is converted to one side, activity depends on prices returning inside the range to resume.

  • A tighter range increases concentration risk: Inventory can become one-sided after a smaller directional move.

  • Spread income may not offset inventory losses.

  • Execution depends on demand and competition: More concentrated liquidity does not guarantee more volume.

  • Smart contract risk.

Understanding the position

For BTC/USDC:

  • Base asset: BTC, the asset bought and sold.

  • Quote asset: USDC, the asset used to price and purchase BTC.

  • Deployable principal: BTC and USDC available to fund trades.

  • Internal price: The curve price implied by the position’s current inventory.

  • Spread: The configured separation between buy and sell quotes around the internal price.

  • Claimable balances: Trading profits set aside through the position’s yielding mechanism.

  • Fixed boundaries: The lower and upper price limits of the configured liquidity curve.

The internal price is not necessarily identical to the Rujira Trade market price or oracle at every moment. Trading changes inventory and moves that internal price.

Examples below are illustrative, not recommended settings. Exact quotes and amounts depend on price-level rounding, protocol fees and the selected configuration.

Strategy parameters

Lower price boundary

The lower price boundary determines how far downward the position distributes buying liquidity.

Example: With BTC initially at 100,000 USDC, a lower boundary of 80,000 USDC means the position progressively buys BTC as trading moves its curve toward 80,000 USDC.

If the curve reaches its lower end through trading, deployable inventory becomes effectively BTC-only, apart from rounding or small residual balances.

Trade-off: A closer lower boundary concentrates buying capacity over a smaller decline but can use up USDC sooner. A lower boundary farther away spreads purchases over a larger decline, with less liquidity near the starting price.

The lower boundary is not a stop-loss. After becoming BTC-heavy or BTC-only, the position remains exposed to further BTC price falls.

Upper price boundary

The upper price boundary determines how far upward the position distributes selling liquidity.

Example: With BTC initially at 100,000 USDC, an upper boundary of 125,000 USDC means the position progressively sells BTC as trading moves its curve toward 125,000 USDC.

If the curve reaches its upper end through trading, deployable inventory becomes effectively USDC-only.

Trade-off: A closer upper boundary concentrates selling capacity over a smaller rally but can sell out BTC sooner. A higher boundary spreads sales over a larger rally, preserving BTC exposure for longer.

If BTC continues rising after the position becomes USDC-only, the position no longer participates in that rise through deployable BTC inventory.

Spread

Spread controls the distance between buy and sell quotes around the position’s internal price.

Before protocol-fee adjustments and price-level rounding:

Example: With an internal price of 100,000 USDC and a 0.3% spread:

  • Indicative buy quote: 99,850 USDC.

  • Indicative sell quote: 100,150 USDC.

Assuming a 0.025% protocol fee, the corresponding fee-adjusted quotes are approximately:

  • 99,825.04 USDC to buy.

  • 100,175.04 USDC to sell.

The applicable protocol fee comes from the pair’s configuration. See Rujira AMM fees.

These are starting quotes around a particular internal price. A larger trade can consume liquidity farther along the curve and receive a different average execution price.

Trade-off: A wider spread offers a larger margin around the internal price but may reduce competitiveness and trading activity. A narrower spread offers closer quotes, which may encourage more trading, but earns less profit per trade and provides less cushion against adverse price movements.

Spread is not a guaranteed profit margin against your acquisition cost. The internal price changes with inventory, so a buy and a later sell do not necessarily occur around the same reference price.

Reward Strategy: compounding versus Yielding

The Reward Strategy controls how much of the configured spread is used to calculate separately claimable income.

  • More compounding: More trading profits remain in deployable principal.

  • More Yielding: More trading profits are set aside in claimable balances.

CCL implements this through a fee-based allocation. It does not calculate an exact share of every trade’s economic profit against acquisition cost.

The relationship is:

Example: With:

  • Spread: 0.3%.

  • Yielding: 50%.

The position fee parameter is 0.15%, and the amount set aside per fill is 0.075% of the tokens received.

If a sale receives 1,000 USDC:

  • 0.75 USDC becomes claimable.

  • 999.25 USDC remains in deployable principal.

If a purchase receives 0.01 BTC:

  • 0.0000075 BTC becomes claimable.

  • 0.0099925 BTC remains in deployable principal.

The Rujira Trade protocol fee is separate from this allocation.

The current CCL configuration permits Yielding up to 98% of the Spread, rather than 100%. This is to avoid any capital leaking out of the principal due to rounding; the remaining 2% is compounded inside the position.

Trade-off: More Yielding makes more income separately claimable. More compounding retains more capital in the strategy, but also keeps it exposed to inventory risk.

A position can accumulate claimable income while losing value overall. Yielding does not prevent losses on deployable principal.

Deposit amounts and starting allocation

CCL’s required starting allocation depends on the selected range and starting market price. It is not a freely chosen BTC/USDC ratio.

  • Near the lower boundary, the required allocation is more BTC-heavy.

  • Near the upper boundary, it is more USDC-heavy.

  • Below the range, funding is BTC-only.

  • Above the range, funding is USDC-only.

Example: At 100,000 USDC, the 80,000–125,000 USDC range requires approximately equal BTC and USDC values.

Changing the range changes the required ratio and may change the maximum deposit your balances can support.

Single-sided ranges

A range entirely above or below the current price allows a single-sided starting position.

Example: BTC-only selling range

With BTC currently at 100,000 USDC, select 100,000–140,000 USDC.

The position starts with BTC and is designed to sell as price reaches and progresses through that higher range while earning yield by trading volatility inside the range.

Once price enters the range and some BTC has been sold, the position can use the resulting USDC to buy BTC again as price fluctuates within the range. CCL is therefore not a sell-only strategy. If you want to sell progressively at selected price levels without buying back, you can use scaled sell limit orders instead.

Example: USDC-only buying range

With BTC currently at 100,000 USDC, select 60,000–95,000 USDC.

The position starts with USDC and is designed to buy as price reaches and progresses through that lower range while earning yield by trading volatility inside the range.

Once price enters the range and some BTC has been bought, the position can use the resulting BTC to sell for USDC again as price fluctuates within the range. CCL is therefore not a buy-only strategy. If you want to buy progressively at selected price levels without selling back, you can use scaled buy limit orders instead.

Read-only indicators

Tightness Factor

Tightness Factor is an indicator of liquidity concentration for the configured range:

Example:

A narrower 95,000–105,000 USDC range has a Tightness Factor of approximately 90.48%.

Higher values indicate tighter ranges. Tightness Factor does not measure profitability, safety or the live bid–ask spread.

Average Buy Price and Average Sell Price

These indicators summarize the projected liquidity-weighted execution prices across the buying and selling sides.

They are not necessarily the midpoint of either range.

Ignoring spread, fees and reward allocation, an illustrative full-side average is:

Example: With an internal price of 100,000 USDC and a range of 80,000–125,000 USDC:

  • Average buy price: approximately 89,443 USDC.

  • Average sell price: approximately 111,803 USDC.

The displayed estimates account for the applicable configuration and remaining liquidity. They can change as trades execute.

What happens outside the range?

Once trading has converted deployable inventory to one side:

  • Below the lower end: The position is effectively BTC-only.

  • Above the upper end: The position is effectively USDC-only.

Further activity generally pauses until market prices return to levels where the position can trade competitively.

The range does not automatically move to follow the market. Choosing different boundaries may require closing the existing position and creating a new one.

Example: A position becomes BTC-only near its lower boundary of 80,000 USDC. If BTC falls further to 70,000 USDC, that BTC inventory continues losing value measured in USDC, but the position now own more BTC than it started with.

Why might a position stop trading?

A CCL position may become inactive because:

  • Its inventory has become one-sided after trading through the range.

  • The market is outside its competitive quoting range.

  • Its spread makes other liquidity more attractive.

  • Matching demand is limited.

  • Remaining amounts are below executable minimums (this apply for very small positions).

A tighter range or narrower spread may change activity, but neither guarantees greater volume or better returns.

Claiming, withdrawing and closing

  • Claiming transfers separately accrued trading profits without withdrawing deployable principal.

  • Withdrawing removes a proportion of the position’s deployable BTC and USDC.

  • Closing returns the remaining deployable inventory and claimable balances.

Amounts returned depend on the position’s inventory at that time. They are not guaranteed to match the original deposit quantities or value.

Evaluate the whole position, including remaining inventory, claimable and previously claimed income, withdrawals and protocol fees, not income or APR alone. The MOIC (Multiple of Invested Capital) gives you a measure of the total position return.

CCL in practice

Illustrative scenarios, not recommended settings. Alice and Bob have different objectives. Their ranges, spreads and Yielding settings illustrate trade-offs, not an assurance that those choices suit a particular market.

Alice and Bob both want to put their BTC and USDC to work, but have different objectives and choose different ranges and parameters that suits them.

In both examples, BTC starts at 100,000 USDC. Their plans to close and reopen positions are manual decisions, not automatic CCL actions.

Alice chooses a wide range and prioritises claimable yield

Alice takes a longer-term approach. She wants her position to remain active across a broad range of BTC prices and generate earnings she can claim separately.

She checked the chart and believes BTC has a strong support at $70,000 and a strong resistance at $150,000.

  • She is happy to be 100% in BTC below 70,000 USDC, at which point she will close her position and keep the BTC with the aim of selling a portion for USDC and open a new position when BTC price has recovered, effectively using the CCL position as a tool to average down on BTC.

  • She is happy to be 100% in USDC above 150,000 USDC, at which point she will close her position and keep the USDC with the aim of selling a portion for BTC and opening a new position when BTC price drops again.

Illustrative settings:

  • Starting investment: 10,000 USDC.

  • Lower bound: 70,000 USDC.

  • Upper bound: 150,000 USDC.

  • Spread: 0.30%.

  • Yielding: 98%.

Alice swaps part of her USDC into BTC to obtain the starting allocation required by her range. This is not necessarily a 50% BTC / 50% USDC allocation: CCL determines the required mix from the selected range and starting price.

How her position works

As price moves through her range, buy and sell orders are automatically executed and she generates some yield from trading profits. The more the price moves (= volatility), the more yield she generates.

Her wide range leaves room for these trades across substantial price movements. With Yielding at 98%, she prioritises collecting claimable trading profits rather than retaining all earnings inside the position.

She will be able to monitor the performance of her position with detailed analytics directly from the Rujira Trade page, and claim her yield periodically to supplement her income. Just like that, Alice became an algorithmic trader!

Potential upside for Alice

Alice can turn trading activity into claimable BTC and USDC while gradually adjusting her exposure. Declines provide opportunities to accumulate BTC through executed buys, while rises provide opportunities to convert BTC into USDC through executed sells.

The broader range gives her position more room to keep participating without frequently needing a new range.

What Alice accepts

Her inventory changes as trades execute. Towards the bottom of the range, her deployed position becomes increasingly BTC-heavy; towards the top, increasingly USDC-heavy.

She accepts that accumulated BTC can fall in value, selling BTC can reduce participation in a continued rally, and claimable fees do not guarantee an overall profit.

Bob chooses a narrow range and prioritises compounding

Bob has a short-term investment horizon and prefers a more actively managed position.

He likes to open positions with a tight range around current price, maximizing his return while the price stays in his range. When the position gets out of range, he doesn't mind waiting for the price to move in his favor to re-open a new position.

Current BTC price is 100,000 USDC, he decides to open a position with a tight +/-1.5% range around current price (low = 98,500 USDC / high = 101,500 USDC).

  • If his position gets out of range by the top, his plan is to close the position, keep the USDC and wait till price falls below 98,500 USDC to buy back some BTC and open a new position with a +/-1.5% range again.

  • If his position gets out of range by the bottom, his plan is to close the position, keep the BTC and wait till price rises above 101,500 USDC to sell some BTC and open a new position with a +/-1.5% range again.

Illustrative settings:

  • Starting investment: 1,000 USDC.

  • Lower bound: 98,500 USDC.

  • Upper bound: 101,500 USDC.

  • Spread: 0.10%.

  • Yielding: 0%.

Like Alice, Bob first obtains the BTC and USDC mix required by his range.

How his position works

Bob concentrates his liquidity within a narrow band. His smaller spread places quotes closer to CCL’s internal price, making them potentially more competitive, while capturing less margin per completed trading cycle.

With Yielding at 0%, no trading fees are set aside as claimable yield. Instead, earnings retained after applicable protocol fees remain in the deployed position.

Potential upside for Bob

When matching trades occur within his range, Bob puts his capital to work in a concentrated price band, maximizing his earning potential while price stays inside his range.

Retained earnings can increase the liquidity available for subsequent trading without requiring him to claim and reinvest them manually.

What Bob accepts

His narrow range is easier to leave, so he accepts more periods without trading.

After an upper-range exit, Bob plans to close, hold USDC and wait for BTC below 98,500 USDC before considering another position. After a lower-range exit, he plans to close, hold BTC and wait for BTC above 101,500 USDC. Reopening is manual and uses a newly selected range.

The market may continue moving instead of returning to his preferred entry price. Compounding increases the capital kept in the strategy, but does not remove inventory risk or guarantee positive returns.

Last updated