Skip to main content
solana.dex.liquidity_positions is an aggregated table that builds comprehensive position-level data from the liquidity_events table. It provides summary statistics and metrics for each liquidity position across all supported DEX protocols.

Key Features

This table aggregates liquidity events to provide:
  • Position Lifecycle Tracking - From creation to closure with timestamps
  • Activity Summaries - Counts and amounts for each action type (add, remove, claim_fee, rebalance)
  • Financial Metrics - USD values for all activities and net gains/losses
  • Duration Analysis - Position lifetime and performance tracking
  • Price History - Token prices at position open and close

Supported Protocols

The table includes the same DEX protocols as liquidity_events:
ProjectProtocol
meteorameteora-dlmm

Table Columns

Column NameDescriptionTypeExample
ownerAddress of the liquidity position ownervarcharHYco5pWjQTatiSJAT97XSBrv4hqtreThFA58ZDrTCNLZ
positionThe liquidity position addressvarcharGh3UP8uvSLkyiRo94sEUdh5pCNYpS4WLbJ2evsGTmR71
poolThe liquidity pool addressvarcharHTvjzsfX3yU6BUodCjZ5vZkUrAxMDTrBs3CJaq43ashR
projectThe DEX projectvarcharmeteora
protocolThe protocol used by the DEX projectvarcharmeteora-dlmm
token0Token0’s mint addressvarcharSo11111111111111111111111111111111111111112
token1Token1’s mint addressvarcharEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
token0_symbolToken0’s symbol, if availablevarcharSOL
token1_symbolToken1’s symbol, if availablevarcharUSDC
add_liquidity_amount0Total amount of token0 added to positionfloat10.5
add_liquidity_amount1Total amount of token1 added to positionfloat1050.0
add_liquidity_usd_amount0USD value of token0 added to positionfloat1055.25
add_liquidity_usd_amount1USD value of token1 added to positionfloat1050.00
add_liquidity_usd_amount_totalTotal USD value of liquidity addedfloat2105.25
remove_liquidity_amount0Total amount of token0 removed from positionfloat8.0
remove_liquidity_amount1Total amount of token1 removed from positionfloat800.0
remove_liquidity_usd_amount0USD value of token0 removed from positionfloat804.00
remove_liquidity_usd_amount1USD value of token1 removed from positionfloat800.00
remove_liquidity_usd_amount_totalTotal USD value of liquidity removedfloat1604.00
claim_fee_amount0Total amount of token0 fees claimedfloat0.1
claim_fee_amount1Total amount of token1 fees claimedfloat10.0
claim_fee_usd_amount0USD value of token0 fees claimedfloat10.05
claim_fee_usd_amount1USD value of token1 fees claimedfloat10.00
claim_fee_usd_amount_totalTotal USD value of fees claimedfloat20.05
rebalancing_amount0Total amount of token0 from rebalancingfloat2.0
rebalancing_amount1Total amount of token1 from rebalancingfloat200.0
rebalancing_usd_amount0USD value of token0 from rebalancingfloat201.00
rebalancing_usd_amount1USD value of token1 from rebalancingfloat200.00
rebalancing_usd_amount_totalTotal USD value of rebalancingfloat401.00
add_liquidity_countNumber of add liquidity eventsnumber5
remove_liquidity_countNumber of remove liquidity eventsnumber3
claim_fee_countNumber of claim fee eventsnumber2
rebalancing_countNumber of rebalancing eventsnumber1
create_position_countNumber of create position eventsnumber1
close_position_countNumber of close position eventsnumber1
usd_amount_net_gainNet USD gain/loss for the positionfloat521.30
open_timestampTimestamp when position was createdtimestamp_ntz(9)2023-11-07 05:11:45+00:00
open_txn_idTransaction ID of position creationvarchar4GCpQa7BVefNiwhrB9QhSha4ZLMmQBdYgWTVXwspreBQhx7zdm1a1cTsgW6zjGdqdJH64fxXEiBZY1j5jD5aGgjb
close_timestampTimestamp when position was closedtimestamp_ntz(9)2023-11-15 10:30:22+00:00
close_txn_idTransaction ID of position closurevarchar5HDpQa7BVefNiwhrB9QhSha4ZLMmQBdYgWTVXwspreBQhx7zdm1a1cTsgW6zjGdqdJH64fxXEiBZY1j5jD5aGgjb
is_closedWhether the position has been closedbooleantrue
duration_secondsPosition duration in secondsnumber691357
price_usd_token0_at_openToken0 price in USD when position openedvarchar100.50
price_usd_token1_at_openToken1 price in USD when position openedvarchar1.00
price_usd_token0_at_closeToken0 price in USD when position closedvarchar102.30
price_usd_token1_at_closeToken1 price in USD when position closedvarchar1.00