Get Liquidity History

API Description

Retrieves liquidity operation history for positions. This endpoint provides detailed information about all liquidity additions and removals including price ranges, liquidity amounts, entry prices, and fees for each operation.

HTTP Request

GET /v5/liquidity/history

Request Parameters

Parameter
Type
Required
Description

symbol

string

No

Trading pair symbol (e.g., BTC-USDM-EMG)

type

string

No

Operation type (ADD_LIQUIDITY, REMOVE_LIQUIDITY)

startTime

string

No

Start time (ms)

endTime

string

No

End time (ms)

limit

number

No

Number of records (max 100)

cursor

string

No

Cursor for pagination

Response Parameters

Parameter
Type
Description

instrumentAddrress

string

Contract address of the instrument

symbol

string

Trading pair symbol

expiry

number

Expiry timestamp (0 for perpetual)

type

string

Operation type (ADD_LIQUIDITY, REMOVE_LIQUIDITY)

rid

number

Range ID

lowerPrice

string

Lower price of the range

upperPrice

string

Upper price of the range

entryPrice

string

Entry price for the liquidity position

liquidity

string

Liquidity amount

balance

string

Position balance

blockInfo

object

Block information

-> height

number

Block height

-> timestamp

number

Block timestamp

Request Example

cURL

JavaScript (Fetch)

Python (requests)

Response Example

Success Response

Error Response

Last updated