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/history

Request Parameters

Parameter
Type
Required
Description

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

Parameter
Type
Description

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 chainId and address parameters are required

  • The address must be a valid EVM address format

  • Returns liquidity operation history (additions and removals) for the specified address

  • Supports pagination with page and size parameters

  • Default page size is 50, maximum is 200

  • type: 0 for add liquidity, 1 for remove liquidity

  • typeString: "add" or "remove" as string

  • timestamp: Unix timestamp in seconds

  • lowerTick and upperTick: Tick values defining the price range

  • lowerPrice and upperPrice: Actual price values for the liquidity range

  • fairPrice: Fair price at the time of the operation

  • amount: Liquidity amount added or removed

  • feeEarned: Fees earned from this liquidity position

  • expiry: 4294967295 indicates a perpetual contract

  • baseToken and quoteToken: Token information including symbol, decimals, image, and current price

  • Optional symbol parameter can filter results by trading pair

  • Optional startTime and endTime parameters can filter by time range

  • totalCount: Total number of liquidity operation records (useful for pagination)

  • Rate limit: 120 requests per minute

  • Success response has code: 0 (not 200)

Last updated