Get Liquidity History
API Description
Retrieves liquidity operation history (additions and removals) for a specific address on a given chain. This endpoint provides detailed information about all liquidity operations including price ranges, liquidity amounts, fees earned, and token information for each operation.
HTTP Request
GET /v4/public/mm/liquidity/historyRequest Parameters
chainId
uint64
Yes
Chain ID (e.g., 143 for Monad mainnet)
address
string
Yes
Trader wallet address (EVM address format)
page
uint32
No
Page number (default: 1)
size
uint32
No
Page size (default: 50, max: 200)
symbol
string
No
Trading pair symbol (e.g., BTC/USDC)
startTime
int64
No
Start time in Unix timestamp (seconds)
endTime
int64
No
End time in Unix timestamp (seconds)
Response Parameters
list
array
Array of liquidity operation records
-> id
string
Operation record ID
-> instrumentAddress
string
Contract address of the instrument
-> expiry
number
Expiry timestamp (4294967295 for perpetual)
-> timestamp
number
Operation timestamp (Unix timestamp in seconds)
-> txHash
string
Transaction hash on the blockchain
-> type
number
Operation type (0: add, 1: remove)
-> typeString
string
Operation type as string ("add", "remove")
-> lowerTick
number
Lower tick of the price range
-> upperTick
number
Upper tick of the price range
-> lowerPrice
string
Lower price of the range
-> upperPrice
string
Upper price of the range
-> fairPrice
string
Fair price at the time of operation
-> amount
string
Liquidity amount
-> feeEarned
string
Fees earned from this liquidity position
-> symbol
string
Trading pair symbol (e.g., BTC/USDC)
-> baseToken
object
Base token information
-> -> address
string
Token contract address
-> -> symbol
string
Token symbol (e.g., BTC)
-> -> decimals
number
Token decimal places
-> -> image
string
Token image URL
-> -> price
number
Current token price
-> quoteToken
object
Quote token information
-> -> address
string
Token contract address
-> -> symbol
string
Token symbol (e.g., USDC)
-> -> decimals
number
Token decimal places
-> -> image
string
Token image URL
-> -> price
number
Current token price
totalCount
number
Total number of liquidity operation records
Request Example
Python (requests)
Note: This endpoint requires API authentication. See Quick Start Guide for signature generation details.
Response Example
Success Response
Error Response
Notes
This endpoint requires API authentication (see Quick Start Guide)
Both
chainIdandaddressparameters are requiredThe
addressmust be a valid EVM address formatReturns liquidity operation history (additions and removals) for the specified address
Supports pagination with
pageandsizeparametersDefault page size is 50, maximum is 200
type: 0 for add liquidity, 1 for remove liquiditytypeString: "add" or "remove" as stringtimestamp: Unix timestamp in secondslowerTickandupperTick: Tick values defining the price rangelowerPriceandupperPrice: Actual price values for the liquidity rangefairPrice: Fair price at the time of the operationamount: Liquidity amount added or removedfeeEarned: Fees earned from this liquidity positionexpiry: 4294967295 indicates a perpetual contractbaseTokenandquoteToken: Token information including symbol, decimals, image, and current priceOptional
symbolparameter can filter results by trading pairOptional
startTimeandendTimeparameters can filter by time rangetotalCount: Total number of liquidity operation records (useful for pagination)Rate limit: 120 requests per minute
Success response has
code: 0(not 200)
Last updated