Vessel Finance API
  1. AMM
Vessel Finance API
  • Introduction
  • General Info
  • HMAC Signature Guide
  • Poseidon Signature Guide
  • Internal Transfer Signature Guide
  • Error Code
  • Vessel REST API
    • Public
      • Market Data
        • 24hr Ticker Statistics
        • Kline / Candlestick Data
        • Order Book
        • Recent Trades List
        • Average Price
        • AMM Pool Last 24h Data
      • Exchange Data
        • Ticker Info
        • Asset Info
        • Trade Fee
        • AMM Pool Info
    • User
      • Asset
        • User Asset
        • Withdraw
        • Withdraw History
        • Deposit History
        • Claim History
        • Internal Transfer (Send)
        • Internal Transfer History
      • Order
        • Place Order
        • Cancel Order
        • Open Orders
        • Completed Orders
        • All Orders
        • Query Order
        • Modify Order
      • AMM
        • Add Liquidity
          POST
        • Remove Liquidity
          POST
        • Collect Fee
          POST
        • AMM Position
          GET
        • AMM Action History
          GET
      • Account
        • User Profile
        • User Trade List
  • Vessel WebSocket
    • Market
      • Order Book
      • K Line
      • Recent Trades
      • 24hr Ticker Statistics
      • Ticker Setting Upade
    • User
      • Authorize
      • Balance
      • Account
  1. AMM

AMM Position

Testnet Env
https://testnet.trade.vessel.finance
Testnet Env
https://testnet.trade.vessel.finance
GET
/api/v1/amm/user/positions
Last modified:2024-10-15 06:23:56

Request

Query Params
poolId
string 
optional
The unique identifier of the AMM pool to query.
Header Params
VESSEL-API-KEY
string 
required
Default:
{{API_KEY}}
VESSEL-PASSPHRASE
string 
required
Default:
{{API_PASSPHRASE}}
VESSEL-SIGNATURE
string 
required
Use signRequest script to generate
VESSEL-TIMESTAMP
string 
required
Use signRequest script to set

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://testnet.trade.vessel.finance/api/v1/amm/user/positions?poolId' \
--header 'VESSEL-API-KEY;' \
--header 'VESSEL-PASSPHRASE;' \
--header 'VESSEL-SIGNATURE;' \
--header 'VESSEL-TIMESTAMP;'

Responses

🟢200OK
application/json
Body
positions
array [object {8}] 
required
poolId
string 
optional
Unique identifier for the liquidity pool
symbolId
string 
optional
Identifier for the trading pair symbol
tickR
string 
optional
Upper tick boundary of the position
tickL
string 
optional
Lower tick boundary of the position
baseAmount
string 
optional
Amount of base asset in the position
quoteAmount
string 
optional
Amount of quote asset in the position
baseFeeAmount
string 
optional
Amount of base asset collected as fees
quoteFeeAmount
string 
optional
Amount of quote asset collected as fees
Examples
{
  "positions": [
    {
      "poolId": "2",
      "symbolId": "5",
      "tickR": "210",
      "tickL": "200",
      "baseAmount": "0",
      "quoteAmount": "0.1",
      "baseFeeAmount": "0",
      "quoteFeeAmount": "0"
    }
  ]
}
Previous
Collect Fee
Next
AMM Action History
Built with