Intento Flows unlock advanced trading strategies across chains

The new difference mode combined with TWAP availability in Intento Flows turns on-chain pricing data into a powerful execution primitive — available to anyone building or trading across the interchain.

Time-Weighted Average Price (TWAP) data has long been used to reduce noise, measure fair value, and detect manipulation in markets.

Now, that data can directly power autonomous execution.

What changed

With the latest update, Intento Flows can query TWAP records from Osmosis trustlessly through Interchain Queries (ICQ) — and use them as live conditions in flow execution.

This means a flow can:

  • Detect price trends using difference_mode, comparing the latest TWAP delta.
  • Execute trades only when TWAP values cross thresholds.
  • Compare spot vs TWAP to identify arbitrage.
  • Enforce guardrails on autocompounding or streaming swaps.

For the first time, decentralized automation can act on smoothed, reliable pricing data, not just volatile spot prices.

Why this matters

ForIt means
InvestorsSafer automated execution that ignores short-term volatility and price manipulation.
DeFi usersSmarter strategies built directly into the protocols they already use — without needing custom bots.
DevelopersA standard hook (TwapRecord) for integrating arithmetic or geometric TWAP into any flow, across chains.
TradersTools to run TWAP-based DCA, trend detection, and arbitrage logic directly on-chain — no scripts or off-chain servers.

How it works

Intento Flows query Osmosis’ on-chain TwapRecord using ICQ:

{
  "query_type": "store/twap/key",
  "query_key": "<generated_twap_key>"
}

Every record contains:

  • Arithmetic TWAP accumulators – used to compute average prices over time.
  • Geometric TWAP accumulator – used to measure proportional growth or volatility.
  • Spot prices – for current state comparisons.

Flows can run in:

  • difference_mode: compare current and last values → perfect for averages and trends.
  • current value mode: use the latest snapshot → ideal for spot checks.

Example strategies

🟡 TWAP-based DCA

Spread entries over time, buy only when the average price across the last interval is below your target.

"operator": "SMALLER_THAN",
"operand": "483840", // 1-week TWAP target difference at $0.8
"difference_mode": true

🔵 Trend Detection

Track positive or negative momentum using TWAP deltas.

"operator": "GREATER_EQUAL",
"operand": "0",
"difference_mode": true

🟠 Spot vs TWAP Arbitrage

Identify dislocations between spot and fair value.

"response_key": "P0LastSpotPrice",
"operand": "osmosistwapv1beta1.TwapRecord.GeometricTwapAccumulator",
"operator": "SMALLER_THAN"

🟢 Safe Compounding

Only reinvest rewards when TWAP drift is within tolerance.

"operator": "LESS_EQUAL",
"operand": "0.50",
"difference_mode": true

For developers

  • Integrate ICQConfig in Comparison or FeedbackLoop.
  • Use difference_mode = true for accumulators.
  • Use math.Dec for operands — e.g. "0.00123".
  • Operators follow enum syntax (SMALLER_THAN, LARGER_THAN, GREATER_EQUAL, etc.).
  • The Intento Portal can generate correct TWAP query keys for your chain.

The big shift

TWAP data used to be just a reference.

Now it’s a trigger.

Flows can execute, pause, or adjust dynamically — not off-chain, not through bots, but directly on the network.

That changes what “autonomous DeFi” actually means.

TWAP is no longer just an analytics metric.

It’s a hook for real, interchain execution.

These new dynamic flows are being tested on Intento Portal, and will go live soon. If you’re a developer or interested in the mechanics of using ICQs in flows, head over to the docs to learn more

The future

From DCA vaults to streaming swaps and self-optimizing yield flows — TWAP hooks make every automation smarter, safer, and more composable.

One layer deeper. One step closer to fully self-custodial DeFi

Explore more stories

Tue Oct 21 2025 08:30:36 GMT+0000 (Coordinated Universal Time)
Growing the Ecosystem: Upgrades, Ambassador & Delegation Programs
Tokenomics
Fri Aug 22 2025 13:06:32 GMT+0000 (Coordinated Universal Time)
$INTO Airdrop: How 90M $INTO will be given away in a smart way
Tokenomics
Wed Aug 06 2025 12:42:52 GMT+0000 (Coordinated Universal Time)
Introducing $INTO: The Token Powering Interchain Flows