Users
Retrieves all positions associated with a user's public key.
get
/v0/user/positions/{pubkey}
Path parameters
pubkeystring · min: 64 · max: 66required
- The user's public key in hexadecimal format.
- Type:
string
- Description: The public key identifying the user whose positions are being requested.
- Example:
'02a1633caf...e4613f0f0f'
Pattern:
^[0-9a-fA-F]+$
Responses
application/json
application/json
cURL
JavaScript
Python
HTTP
200
500
Retrieves a specific position for a user by public key and pool ID.
get
/v0/user/position/{pubkey}//{poolId}
Path parameters
pubkeystring · min: 64 · max: 66required
- The user's public key in hexadecimal format.
- Type:
string
- Description: The public key identifying the user.
- Example:
'02a1633caf...e4613f0f0f'
Pattern:
^[0-9a-fA-F]+$
poolIdstring · min: 64 · max: 66required
- The unique identifier of the liquidity pool.
- Type:
string
- Description: The ID of the liquidity pool for which the user's position is requested.
- Example:
'02a1633caf...e4613f0f0f'
Pattern:
^[0-9a-fA-F]+$
Responses
application/json
application/json
application/json
cURL
JavaScript
Python
HTTP
200
404
500
Retrieves positions associated with a user's public key based on a filter.
post
/v0/user/positions/{pubkey}/by-filter
Path parameters
pubkeystring · min: 64 · max: 66required
- The user's public key in hexadecimal format.
Pattern:
^[0-9a-fA-F]+$
Body
minLiquidityThe minimum liquidity to filter positionsrequired
The minimum liquidity to filter positions.
limitinteger · min: 1 · max: 100
offsetintegerrequired
nameAn array of token names to filter positionsrequired
An array of token names to filter positions.
sortAn array of sorting fields and directionsrequired
An array of sorting fields and directions.
Responses
application/json
cURL
JavaScript
Python
HTTP
200
Last updated