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

Collect Fee

Testnet Env
https://testnet.trade.vessel.finance
Testnet Env
https://testnet.trade.vessel.finance
POST
/api/v1/amm/collectFee
Last modified:2024-10-15 06:23:56
Collect Fee allows users to collect fees from their positions within an Automated Market Maker (AMM) pool. Users must provide the pool ID, price tick range, and nonce for authentication. Upon successful execution, the API returns the amounts of base and quote assets collected as fees from the position.

Request

Header Params

Body Params application/json

Example
{
    "poolId": 0,
    "tickIndexL": 0,
    "tickIndexR": 0,
    "baseAmount": 0,
    "quoteAmount": 0,
    "nonce": "string",
    "signature": "string"
}

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 POST 'https://testnet.trade.vessel.finance/api/v1/amm/collectFee' \
--header 'VESSEL-TIMESTAMP;' \
--header 'VESSEL-TIMESTAMP;' \
--header 'VESSEL-API-KEY;' \
--header 'VESSEL-PASSPHRASE;' \
--header 'VESSEL-SIGNATURE;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "poolId": 0,
    "tickIndexL": 0,
    "tickIndexR": 0,
    "baseAmount": 0,
    "quoteAmount": 0,
    "nonce": "string",
    "signature": "string"
}'

Responses

🟢200OK
application/json
Body

Examples
{
    "baseAssetAmount": "0.1",
    "quoteAssetAmount": "100.23"
}
Modified at 2024-10-15 06:23:56
Previous
Remove Liquidity
Next
AMM Position
Built with