Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Both V2 (amountXIn/amountXOut) and V3 (signed amount0/amount1) shapes are populated unconditionally — pick whichever fits your client. The quote-token-dependent fields (amountNonLiquidityToken, priceBaseToken*, priceUsd) are computed against the resolved quoteToken (per-pool default or subscriber override).
type
EventType!
Always Swap. See EventType.
amount0
String
Signed delta of token0 (V3-style). Negative when token0 left the pool.
amount1
String
Signed delta of token1 (V3-style).
amount0In
String
Token0 amount paid to the pool by the trader (V2-style). "0" when token0 was received.
amount0Out
String
Token0 amount received by the trader from the pool. "0" when token0 was paid.
amount1In
String
Token1 amount paid to the pool. "0" when token1 was received.
amount1Out
String
Token1 amount received from the pool. "0" when token1 was paid.
amountNonLiquidityToken
String
Absolute decimal amount of the resolved quoteToken involved in the swap.
priceUsd
String
USD price per unit of quoteToken implied by this trade.
priceUsdTotal
String
Total USD value of the swap (= |amountUSD|).
priceBaseToken
String
Per-unit price of quoteToken in the network’s native token. Currently null (pending native-USD price enrichment).
priceBaseTokenTotal
String
Total swap value in the network’s native token. Currently null.
tick
String
Tick index for V3-style pools. Not yet populated.